home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Corel 10 Texture (image/corel10Texture)
| ext
| Unsupported |
1%
| dexvert
| Croteam texture file (image/croteamTextureFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| TrID
| LaTeX 2e document (with rem)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/x-matlab
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 54 68 69 73 20 69 | 73 20 43 48 42 41 52 53 |% This i|s CHBARS|
|00000010| 2e 44 4f 43 09 09 09 20 | 20 61 73 20 6f 66 20 30 |.DOC... | as of 0|
|00000020| 39 20 4f 63 74 20 38 39 | 0a 25 2d 2d 2d 2d 2d 2d |9 Oct 89|.%------|
|00000030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000060| 2d 2d 2d 0a 25 20 28 63 | 29 20 31 39 38 39 20 62 |---.% (c|) 1989 b|
|00000070| 79 20 4a 2e 53 63 68 72 | 6f 64 2e 20 63 6f 70 79 |y J.Schr|od. copy|
|00000080| 20 63 6f 6e 64 69 74 69 | 6f 6e 73 20 73 65 65 20 | conditi|ons see |
|00000090| 62 65 6c 6f 77 2e 0a 0a | 25 0a 25 20 4d 61 63 72 |below...|%.% Macr|
|000000a0| 6f 20 70 61 63 6b 61 67 | 65 20 66 6f 72 20 63 72 |o packag|e for cr|
|000000b0| 65 61 74 69 6e 67 20 63 | 68 61 6e 67 65 62 61 72 |eating c|hangebar|
|000000c0| 73 20 69 6e 20 50 6c 61 | 69 6e 20 54 65 58 0a 25 |s in Pla|in TeX.%|
|000000d0| 20 4d 41 4b 45 50 52 4f | 47 20 69 73 20 6e 65 65 | MAKEPRO|G is nee|
|000000e0| 64 65 64 0a 25 0a 25 20 | 64 6f 63 75 6d 65 6e 74 |ded.%.% |document|
|000000f0| 65 64 20 69 6e 20 4c 61 | 54 65 58 20 28 66 6f 72 |ed in La|TeX (for|
|00000100| 20 41 6e 6e 65 20 61 6e | 64 20 43 68 72 69 73 29 | Anne an|d Chris)|
|00000110| 0a 0a 25 0a 25 09 56 45 | 52 53 49 4f 4e 20 48 49 |..%.%.VE|RSION HI|
|00000120| 53 54 4f 52 59 20 20 28 | 4d 53 43 46 20 2d 2d 20 |STORY (|MSCF -- |
|00000130| 6d 6f 73 74 20 73 69 67 | 6e 69 66 69 63 61 6e 74 |most sig|nificant|
|00000140| 20 63 68 61 6e 67 65 20 | 66 69 72 73 74 29 0a 25 | change |first).%|
|00000150| 0a 25 20 44 41 54 45 09 | 20 20 20 50 45 52 53 4f |.% DATE.| PERSO|
|00000160| 4e 20 20 52 45 4d 41 52 | 4b 0a 25 20 38 39 2d 31 |N REMAR|K.% 89-1|
|00000170| 30 2d 30 39 20 2d 6a 73 | 09 20 20 20 63 6f 6e 76 |0-09 -js|. conv|
|00000180| 65 72 74 65 64 20 74 6f | 20 4c 61 54 65 58 20 28 |erted to| LaTeX (|
|00000190| 70 72 6f 67 6c 74 78 29 | 0a 25 20 38 39 2d 30 39 |progltx)|.% 89-09|
|000001a0| 2d 32 35 20 2d 6a 73 09 | 20 20 20 72 65 70 61 69 |-25 -js.| repai|
|000001b0| 72 65 64 20 5c 6d 61 72 | 6b 20 70 72 6f 63 65 73 |red \mar|k proces|
|000001c0| 73 69 6e 67 20 69 6e 20 | 68 6f 72 69 7a 6f 6e 74 |sing in |horizont|
|000001d0| 61 6c 20 6d 6f 64 65 0a | 25 20 38 39 2d 30 38 20 |al mode.|% 89-08 |
|000001e0| 20 20 20 2d 6a 73 09 20 | 20 20 66 69 72 73 74 20 | -js. | first |
|000001f0| 76 65 72 73 69 6f 6e 20 | 28 66 6f 72 20 45 75 72 |version |(for Eur|
|00000200| 6f 54 65 58 38 39 20 69 | 6e 20 4b 61 72 6c 73 72 |oTeX89 i|n Karlsr|
|00000210| 75 68 65 29 0a 25 0a 0a | 25 20 61 75 74 68 6f 72 |uhe).%..|% author|
|00000220| 27 73 20 63 75 72 72 65 | 6e 74 20 61 64 64 72 65 |'s curre|nt addre|
|00000230| 73 73 3a 0a 25 0a 25 09 | 44 65 74 69 67 24 5c 2c |ss:.%.%.|Detig$\,|
|00000240| 5c 63 64 6f 74 5c 2c 24 | 53 63 68 72 6f 64 20 5c |\cdot\,$|Schrod \|
|00000250| 54 65 58 7b 7d 73 79 73 | 0a 25 09 4a 6f 61 63 68 |TeX{}sys|.%.Joach|
|00000260| 69 6d 20 53 63 68 72 6f | 64 0a 25 09 4b 72 61 6e |im Schro|d.%.Kran|
|00000270| 69 63 68 77 65 67 20 31 | 0a 25 0a 25 09 44 2d 36 |ichweg 1|.%.%.D-6|
|00000280| 30 37 34 20 52 5c 22 6f | 64 65 72 6d 61 72 6b 2d |074 R\"o|dermark-|
|00000290| 55 72 62 65 72 61 63 68 | 0a 25 09 46 52 20 47 65 |Urberach|.%.FR Ge|
|000002a0| 72 6d 61 6e 79 0a 25 0a | 25 09 54 65 6c 2e 20 28 |rmany.%.|%.Tel. (|
|000002b0| 2b 36 30 37 34 29 20 31 | 36 31 37 0a 25 09 42 69 |+6074) 1|617.%.Bi|
|000002c0| 74 6e 65 74 3a 20 58 49 | 54 49 4a 53 43 48 40 44 |tnet: XI|TIJSCH@D|
|000002d0| 44 41 54 48 44 32 31 0a | 0a 0a 0a 25 20 73 68 6f |DATHD21.|...% sho|
|000002e0| 75 6c 64 20 62 65 20 70 | 72 6f 67 74 65 78 2e 2e |uld be p|rogtex..|
|000002f0| 2e 0a 25 25 25 25 0a 25 | 25 25 25 0a 25 25 25 25 |..%%%%.%|%%%.%%%%|
|00000300| 20 54 68 65 73 65 20 54 | 65 58 20 6d 61 63 72 6f | These T|eX macro|
|00000310| 73 20 77 65 72 65 20 64 | 6f 63 75 6d 65 6e 74 65 |s were d|ocumente|
|00000320| 64 20 77 69 74 68 20 74 | 68 65 20 64 6f 63 75 6d |d with t|he docum|
|00000330| 65 6e 74 61 74 69 6f 6e | 20 73 79 73 74 65 6d 0a |entation| system.|
|00000340| 25 25 25 25 20 4d 41 4b | 45 50 52 4f 47 20 61 6e |%%%% MAK|EPROG an|
|00000350| 64 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |d automa|tically |
|00000360| 63 6f 6e 76 65 72 74 65 | 64 20 74 6f 20 74 68 65 |converte|d to the|
|00000370| 20 63 75 72 72 65 6e 74 | 20 66 6f 72 6d 2e 0a 25 | current| form..%|
|00000380| 25 25 25 20 49 66 20 79 | 6f 75 20 68 61 76 65 20 |%%% If y|ou have |
|00000390| 4d 41 4b 45 50 52 4f 47 | 20 61 76 61 69 6c 61 62 |MAKEPROG| availab|
|000003a0| 6c 65 20 79 6f 75 20 6d | 61 79 20 74 72 61 6e 73 |le you m|ay trans|
|000003b0| 66 6f 72 6d 20 69 74 20 | 62 61 63 6b 20 74 6f 0a |form it |back to.|
|000003c0| 25 25 25 25 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |%%%% the| origina|
|000003d0| 6c 20 69 6e 70 75 74 3a | 20 52 65 6d 6f 76 65 20 |l input:| Remove |
|000003e0| 65 76 65 72 79 20 6f 63 | 63 75 72 65 6e 63 65 20 |every oc|curence |
|000003f0| 6f 66 20 74 68 72 65 65 | 20 70 65 72 63 65 6e 74 |of three| percent|
|00000400| 73 0a 25 25 25 25 20 61 | 6e 64 20 6f 6e 65 20 6f |s.%%%% a|nd one o|
|00000410| 70 74 69 6f 6e 61 6c 20 | 62 6c 61 6e 6b 20 66 72 |ptional |blank fr|
|00000420| 6f 6d 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |om the b|eginning|
|00000430| 20 6f 66 20 61 20 6c 69 | 6e 65 20 61 6e 64 20 72 | of a li|ne and r|
|00000440| 65 6d 6f 76 65 0a 25 25 | 25 25 20 65 76 65 72 79 |emove.%%|%% every|
|00000450| 20 6c 69 6e 65 20 77 68 | 69 63 68 20 73 74 61 72 | line wh|ich star|
|00000460| 74 73 20 77 69 74 68 20 | 66 6f 75 72 20 70 65 72 |ts with |four per|
|00000470| 63 65 6e 74 73 2e 20 20 | 54 68 65 20 66 6f 6c 6c |cents. |The foll|
|00000480| 6f 77 69 6e 67 20 6c 65 | 78 0a 25 25 25 25 20 70 |owing le|x.%%%% p|
|00000490| 72 6f 67 72 61 6d 20 77 | 69 6c 6c 20 64 6f 20 74 |rogram w|ill do t|
|000004a0| 68 69 73 3a 0a 25 25 25 | 25 0a 25 25 25 25 20 20 |his:.%%%|%.%%%% |
|000004b0| 20 20 25 25 0a 25 25 25 | 25 0a 25 25 25 25 20 20 | %%.%%%|%.%%%% |
|000004c0| 20 20 5e 25 25 25 5c 20 | 3f 20 20 20 3b 0a 25 25 | ^%%%\ |? ;.%%|
|000004d0| 25 25 20 20 20 20 5e 25 | 25 25 25 2e 2a 5c 6e 20 |%% ^%|%%%.*\n |
|000004e0| 3b 0a 25 25 25 25 0a 25 | 25 25 25 20 4d 41 4b 45 |;.%%%%.%|%%% MAKE|
|000004f0| 50 52 4f 47 20 6d 61 79 | 20 62 65 20 6f 62 74 61 |PROG may| be obta|
|00000500| 69 6e 65 64 20 6f 76 65 | 72 20 74 68 65 20 6e 65 |ined ove|r the ne|
|00000510| 74 20 66 72 6f 6d 20 74 | 68 65 20 42 69 74 6e 65 |t from t|he Bitne|
|00000520| 74 2d 4c 69 73 74 73 65 | 72 76 65 72 0a 25 25 25 |t-Listse|rver.%%%|
|00000530| 25 20 4c 49 53 54 53 45 | 52 56 40 44 48 44 55 52 |% LISTSE|RV@DHDUR|
|00000540| 5a 31 20 28 66 69 6c 65 | 6c 69 73 74 20 57 45 42 |Z1 (file|list WEB|
|00000550| 57 41 52 45 29 2c 20 66 | 72 6f 6d 20 74 75 67 6c |WARE), f|rom tugl|
|00000560| 69 62 40 73 63 69 65 6e | 63 65 2e 75 74 61 68 2e |ib@scien|ce.utah.|
|00000570| 65 64 75 2c 0a 25 25 25 | 25 20 6f 72 20 76 69 61 |edu,.%%%|% or via|
|00000580| 20 66 74 70 20 66 72 6f | 6d 20 6a 75 6e 65 2e 63 | ftp fro|m june.c|
|00000590| 73 2e 77 61 73 68 69 6e | 67 74 6f 6e 2e 65 64 75 |s.washin|gton.edu|
|000005a0| 2e 0a 25 25 25 25 0a 25 | 25 25 25 0a 25 25 25 20 |..%%%%.%|%%%.%%% |
|000005b0| 5c 64 6f 63 75 6d 65 6e | 74 73 74 79 6c 65 5b 70 |\documen|tstyle[p|
|000005c0| 72 6f 67 6c 74 78 2c 61 | 34 2d 39 5d 7b 61 72 74 |rogltx,a|4-9]{art|
|000005d0| 69 63 6c 65 7d 0a 0a 0a | 25 25 25 20 25 25 25 25 |icle}...|%%% %%%%|
|000005e0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000005f0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000600| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000610| 25 25 25 25 25 25 25 25 | 25 0a 25 25 25 20 25 0a |%%%%%%%%|%.%%% %.|
|00000620| 25 25 25 20 25 20 6c 6f | 63 61 6c 20 6d 61 63 72 |%%% % lo|cal macr|
|00000630| 6f 73 0a 25 25 25 20 25 | 0a 0a 25 25 25 20 5c 6c |os.%%% %|..%%% \l|
|00000640| 65 74 5c 6d 63 3d 5c 73 | 6d 61 6c 6c 09 09 25 20 |et\mc=\s|mall..% |
|00000650| 66 6f 72 20 6e 61 6d 65 | 73 20 6c 69 6b 65 20 47 |for name|s like G|
|00000660| 4e 55 0a 0a 25 25 25 20 | 5c 64 65 66 5c 50 53 7b |NU..%%% |\def\PS{|
|00000670| 7b 5c 73 63 20 50 6f 73 | 74 53 63 72 69 70 74 7d |{\sc Pos|tScript}|
|00000680| 7d 0a 25 25 25 20 5c 64 | 65 66 5c 44 56 49 7b 7b |}.%%% \d|ef\DVI{{|
|00000690| 5c 74 74 20 44 56 49 7d | 7d 0a 25 25 25 20 5c 64 |\tt DVI}|}.%%% \d|
|000006a0| 65 66 5c 47 4e 55 7b 7b | 5c 6d 63 20 47 4e 55 7d |ef\GNU{{|\mc GNU}|
|000006b0| 7d 0a 0a 25 25 25 20 5c | 63 68 61 72 64 65 66 5c |}..%%% \|chardef\|
|000006c0| 62 73 3d 60 5c 5c 0a 0a | 25 25 25 20 25 0a 25 25 |bs=`\\..|%%% %.%%|
|000006d0| 25 20 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |% %%%%%%|%%%%%%%%|
|000006e0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000006f0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000700| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 0a |%%%%%%%%|%%%%%%%.|
|00000710| 0a 0a 0a 0a 25 25 25 20 | 5c 62 65 67 69 6e 7b 64 |....%%% |\begin{d|
|00000720| 6f 63 75 6d 65 6e 74 7d | 0a 0a 0a 25 25 25 20 5c |ocument}|...%%% \|
|00000730| 74 69 74 6c 65 7b 43 68 | 61 6e 67 65 62 61 72 73 |title{Ch|angebars|
|00000740| 20 77 69 74 68 6f 75 74 | 20 7b 5c 74 74 20 5c 62 | without| {\tt \b|
|00000750| 73 7b 7d 73 70 65 63 69 | 61 6c 7d 27 73 7d 0a 25 |s{}speci|al}'s}.%|
|00000760| 25 25 20 5c 61 75 74 68 | 6f 72 7b 5c 73 63 20 4a |%% \auth|or{\sc J|
|00000770| 6f 61 63 68 69 6d 20 53 | 63 68 72 6f 64 7d 0a 0a |oachim S|chrod}..|
|00000780| 25 25 25 20 5c 6d 61 6b | 65 74 69 74 6c 65 0a 0a |%%% \mak|etitle..|
|00000790| 0a 0a 25 25 25 20 5c 62 | 65 67 69 6e 7b 61 62 73 |..%%% \b|egin{abs|
|000007a0| 74 72 61 63 74 7d 0a 25 | 25 25 20 49 74 20 69 73 |tract}.%|%% It is|
|000007b0| 20 63 6f 6d 6d 6f 6e 20 | 70 72 61 63 74 69 63 65 | common |practice|
|000007c0| 20 74 6f 20 75 73 65 20 | 76 65 72 74 69 63 61 6c | to use |vertical|
|000007d0| 20 62 61 72 73 20 69 6e | 20 74 68 65 20 6d 61 72 | bars in| the mar|
|000007e0| 67 69 6e 73 20 6f 66 20 | 61 0a 25 25 25 20 64 6f |gins of |a.%%% do|
|000007f0| 63 75 6d 65 6e 74 20 74 | 6f 20 6d 61 72 6b 20 70 |cument t|o mark p|
|00000800| 69 65 63 65 73 20 6f 66 | 20 74 65 78 74 20 77 68 |ieces of| text wh|
|00000810| 69 63 68 20 68 61 76 65 | 20 63 68 61 6e 67 65 64 |ich have| changed|
|00000820| 20 73 69 6e 63 65 20 74 | 68 65 20 6c 61 73 74 0a | since t|he last.|
|00000830| 25 25 25 20 76 65 72 73 | 69 6f 6e 28 73 29 20 6f |%%% vers|ion(s) o|
|00000840| 66 20 74 68 69 73 20 64 | 6f 63 75 6d 65 6e 74 2e |f this d|ocument.|
|00000850| 20 53 75 63 68 20 76 65 | 72 74 69 63 61 6c 20 62 | Such ve|rtical b|
|00000860| 61 72 73 20 61 72 65 20 | 75 73 75 61 6c 6c 79 0a |ars are |usually.|
|00000870| 25 25 25 20 63 61 6c 6c | 65 64 20 7b 5c 65 6d 20 |%%% call|ed {\em |
|00000880| 63 68 61 6e 67 65 62 61 | 72 73 7d 2e 20 49 74 20 |changeba|rs}. It |
|00000890| 68 61 73 20 6f 66 74 65 | 6e 20 62 65 65 6e 20 73 |has ofte|n been s|
|000008a0| 61 69 64 20 74 68 61 74 | 20 69 74 20 69 73 0a 25 |aid that| it is.%|
|000008b0| 25 25 20 69 6d 70 6f 73 | 73 69 62 6c 65 20 74 6f |%% impos|sible to|
|000008c0| 20 70 72 6f 64 75 63 65 | 20 63 68 61 6e 67 65 62 | produce| changeb|
|000008d0| 61 72 73 20 77 69 74 68 | 20 5c 54 65 58 7b 7d 20 |ars with| \TeX{} |
|000008e0| 77 69 74 68 6f 75 74 20 | 74 68 65 20 75 73 61 67 |without |the usag|
|000008f0| 65 20 6f 66 0a 25 25 25 | 20 7c 5c 73 70 65 63 69 |e of.%%%| |\speci|
|00000900| 61 6c 7c 20 63 6f 6d 6d | 61 6e 64 73 20 28 64 72 |al| comm|ands (dr|
|00000910| 69 76 65 72 20 64 69 72 | 65 63 74 69 76 65 73 29 |iver dir|ectives)|
|00000920| 2c 20 77 68 69 63 68 20 | 65 78 74 65 6e 64 20 74 |, which |extend t|
|00000930| 68 65 0a 25 25 25 20 70 | 72 69 6d 69 74 69 76 65 |he.%%% p|rimitive|
|00000940| 73 20 6f 66 20 5c 54 65 | 58 7b 7d 2e 20 54 68 69 |s of \Te|X{}. Thi|
|00000950| 73 20 70 61 70 65 72 20 | 70 72 65 73 65 6e 74 73 |s paper |presents|
|00000960| 20 61 20 5c 54 65 58 7b | 7d 20 6d 61 63 72 6f 20 | a \TeX{|} macro |
|00000970| 66 69 6c 65 0a 25 25 25 | 20 77 68 69 63 68 20 69 |file.%%%| which i|
|00000980| 6d 70 6c 65 6d 65 6e 74 | 73 20 63 68 61 6e 67 65 |mplement|s change|
|00000990| 62 61 72 73 20 77 69 74 | 68 6f 75 74 20 73 75 63 |bars wit|hout suc|
|000009a0| 68 20 61 20 75 73 61 67 | 65 2e 20 54 68 65 20 6d |h a usag|e. The m|
|000009b0| 61 63 72 6f 20 66 69 6c | 65 0a 25 25 25 20 69 73 |acro fil|e.%%% is|
|000009c0| 20 77 72 69 74 74 65 6e | 20 66 6f 72 20 74 68 65 | written| for the|
|000009d0| 20 75 73 61 67 65 20 77 | 69 74 68 20 50 6c 61 69 | usage w|ith Plai|
|000009e0| 6e 7e 5c 54 65 58 7b 7d | 20 62 75 74 20 74 68 65 |n~\TeX{}| but the|
|000009f0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 20 | impleme|ntation |
|00000a00| 0a 25 25 25 20 73 74 72 | 61 74 65 67 79 20 63 61 |.%%% str|ategy ca|
|00000a10| 6e 20 62 65 20 75 73 65 | 64 20 77 69 74 68 20 5c |n be use|d with \|
|00000a20| 4c 61 54 65 58 7b 7d 2c | 20 74 6f 6f 2e 0a 25 25 |LaTeX{},| too..%%|
|00000a30| 25 20 5c 65 6e 64 7b 61 | 62 73 74 72 61 63 74 7d |% \end{a|bstract}|
|00000a40| 0a 0a 0a 0a 25 25 25 20 | 5c 63 68 61 70 20 49 6e |....%%% |\chap In|
|00000a50| 74 72 6f 64 75 63 74 69 | 6f 6e 2e 0a 0a 25 25 25 |troducti|on...%%%|
|00000a60| 20 43 68 61 6e 67 65 62 | 61 72 73 20 61 72 65 20 | Changeb|ars are |
|00000a70| 75 73 65 64 20 74 6f 20 | 6d 61 72 6b 20 6d 6f 64 |used to |mark mod|
|00000a80| 69 66 69 65 64 20 70 61 | 72 74 73 20 69 6e 20 65 |ified pa|rts in e|
|00000a90| 78 69 73 74 69 6e 67 20 | 64 6f 63 75 6d 65 6e 74 |xisting |document|
|00000aa0| 73 2e 20 20 46 6f 72 0a | 25 25 25 20 74 68 65 20 |s. For.|%%% the |
|00000ab0| 75 73 61 67 65 20 69 6e | 20 5c 54 65 58 7b 7d 20 |usage in| \TeX{} |
|00000ac0| 64 6f 63 75 6d 65 6e 74 | 73 2c 20 74 68 65 72 65 |document|s, there|
|00000ad0| 20 65 78 69 73 74 20 6f | 6e 6c 79 20 73 6f 6c 75 | exist o|nly solu|
|00000ae0| 74 69 6f 6e 73 20 74 68 | 61 74 20 75 73 65 0a 25 |tions th|at use.%|
|00000af0| 25 25 20 64 72 69 76 65 | 72 2f 70 72 69 6e 74 65 |%% drive|r/printe|
|00000b00| 72 20 66 65 61 74 75 72 | 65 73 20 62 79 20 74 68 |r featur|es by th|
|00000b10| 65 20 77 61 79 20 6f 66 | 20 69 6e 73 65 72 74 69 |e way of| inserti|
|00000b20| 6e 67 20 7c 5c 73 70 65 | 63 69 61 6c 7c 20 63 6f |ng |\spe|cial| co|
|00000b30| 6d 6d 61 6e 64 73 20 69 | 6e 0a 25 25 25 20 74 68 |mmands i|n.%%% th|
|00000b40| 65 20 5c 54 65 58 7b 7d | 20 73 6f 75 72 63 65 2c |e \TeX{}| source,|
|00000b50| 20 65 2e 67 2e 5c 20 66 | 6f 72 20 5c 50 53 7b 7d | e.g.\ f|or \PS{}|
|00000b60| 20 64 72 69 76 65 72 73 | 2e 20 20 54 68 69 73 20 | drivers|. This |
|00000b70| 72 65 73 75 6c 74 73 20 | 69 6e 20 64 6f 63 75 6d |results |in docum|
|00000b80| 65 6e 74 73 0a 25 25 25 | 20 74 68 61 74 20 61 72 |ents.%%%| that ar|
|00000b90| 65 20 6e 6f 20 6c 6f 6e | 67 65 72 20 61 73 20 66 |e no lon|ger as f|
|00000ba0| 72 65 65 6c 79 20 69 6e | 74 65 72 63 68 61 6e 67 |reely in|terchang|
|00000bb0| 65 61 62 6c 65 20 61 73 | 20 74 68 65 20 5c 44 56 |eable as| the \DV|
|00000bc0| 49 7b 7d 20 63 6f 6e 63 | 65 70 74 20 77 6f 75 6c |I{} conc|ept woul|
|00000bd0| 64 0a 25 25 25 20 61 6c | 6c 6f 77 2d 2d 2d 64 65 |d.%%% al|low---de|
|00000be0| 76 69 63 65 20 64 65 70 | 65 6e 64 65 6e 63 79 20 |vice dep|endency |
|00000bf0| 69 73 20 70 72 6f 62 6c | 65 6d 61 74 69 63 20 65 |is probl|ematic e|
|00000c00| 73 70 65 63 69 61 6c 6c | 79 20 66 6f 72 20 74 68 |speciall|y for th|
|00000c10| 69 73 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 0a 25 |is appli|cation.%|
|00000c20| 25 25 20 74 68 61 74 20 | 69 73 20 75 73 65 66 75 |%% that |is usefu|
|00000c30| 6c 20 66 6f 72 20 6d 75 | 6c 74 69 2d 61 75 74 68 |l for mu|lti-auth|
|00000c40| 6f 72 69 6e 67 20 6f 72 | 20 73 74 61 6e 64 61 72 |oring or| standar|
|00000c50| 64 73 20 64 65 76 65 6c | 6f 70 6d 65 6e 74 2e 0a |ds devel|opment..|
|00000c60| 0a 25 25 25 20 54 68 69 | 73 20 6d 61 63 72 6f 20 |.%%% Thi|s macro |
|00000c70| 70 61 63 6b 61 67 65 20 | 6f 66 66 65 72 73 20 61 |package |offers a|
|00000c80| 20 70 75 72 65 20 5c 54 | 65 58 7b 7d 20 73 6f 6c | pure \T|eX{} sol|
|00000c90| 75 74 69 6f 6e 2e 20 20 | 4e 65 76 65 72 74 68 65 |ution. |Neverthe|
|00000ca0| 6c 65 73 73 2c 20 69 74 | 20 68 61 73 0a 25 25 25 |less, it| has.%%%|
|00000cb0| 20 69 74 73 20 72 65 73 | 74 72 69 63 74 69 6f 6e | its res|triction|
|00000cc0| 73 2c 20 74 6f 6f 2e 09 | 54 68 65 20 70 61 67 65 |s, too..|The page|
|00000cd0| 20 62 72 65 61 6b 20 77 | 69 6c 6c 20 6e 6f 20 6c | break w|ill no l|
|00000ce0| 6f 6e 67 65 72 20 62 65 | 20 6f 70 74 69 6d 61 6c |onger be| optimal|
|00000cf0| 2c 0a 25 25 25 20 62 65 | 63 61 75 73 65 20 6e 6f |,.%%% be|cause no|
|00000d00| 20 73 74 72 65 63 68 61 | 62 69 6c 69 74 79 20 6f | strecha|bility o|
|00000d10| 72 20 73 68 72 69 6e 6b | 61 62 69 6c 69 74 79 20 |r shrink|ability |
|00000d20| 6f 6e 20 61 20 70 61 67 | 65 20 6f 6e 20 74 6f 70 |on a pag|e on top|
|00000d30| 20 6f 66 20 74 68 65 20 | 6c 61 73 74 0a 25 25 25 | of the |last.%%%|
|00000d40| 20 6d 61 72 6b 20 6f 66 | 20 61 20 63 68 61 6e 67 | mark of| a chang|
|00000d50| 65 20 69 73 20 73 75 70 | 70 6f 72 74 65 64 2e 09 |e is sup|ported..|
|00000d60| 42 75 74 20 74 68 69 73 | 20 73 65 65 6d 73 20 74 |But this| seems t|
|00000d70| 6f 20 62 65 20 61 63 63 | 65 70 74 61 62 6c 65 2c |o be acc|eptable,|
|00000d80| 0a 25 25 25 20 65 73 70 | 65 63 69 61 6c 6c 79 20 |.%%% esp|ecially |
|00000d90| 61 73 20 74 68 65 20 63 | 68 61 6e 67 65 20 62 61 |as the c|hange ba|
|00000da0| 72 20 66 65 61 74 75 72 | 65 20 6f 66 74 65 6e 20 |r featur|e often |
|00000db0| 77 69 6c 6c 20 62 65 20 | 75 73 65 64 20 66 6f 72 |will be |used for|
|00000dc0| 20 70 72 6f 6f 66 0a 25 | 25 25 20 72 65 61 64 69 | proof.%|%% readi|
|00000dd0| 6e 67 20 61 6e 64 20 6e | 6f 74 20 69 6e 20 74 68 |ng and n|ot in th|
|00000de0| 65 20 66 69 6e 61 6c 20 | 64 6f 63 75 6d 65 6e 74 |e final |document|
|00000df0| 2e 09 54 68 69 73 20 72 | 65 73 74 72 69 63 74 69 |..This r|estricti|
|00000e00| 6f 6e 20 69 73 20 74 68 | 65 20 72 65 61 73 6f 6e |on is th|e reason|
|00000e10| 0a 25 25 25 20 77 68 79 | 20 6e 6f 20 63 68 61 6e |.%%% why| no chan|
|00000e20| 67 65 20 6d 61 72 6b 73 | 20 63 61 6e 20 62 65 20 |ge marks| can be |
|00000e30| 75 73 65 64 20 6f 6e 20 | 74 69 74 6c 65 70 61 67 |used on |titlepag|
|00000e40| 65 73 20 6f 72 20 66 6f | 72 20 73 69 6d 69 6c 61 |es or fo|r simila|
|00000e50| 72 0a 25 25 25 20 63 6f | 6e 73 74 72 75 63 74 69 |r.%%% co|nstructi|
|00000e60| 6f 6e 73 2e 09 43 68 61 | 6e 67 65 73 20 69 6e 20 |ons..Cha|nges in |
|00000e70| 66 6c 6f 61 74 69 6e 67 | 20 69 6e 73 65 72 74 69 |floating| inserti|
|00000e80| 6f 6e 73 20 28 66 6f 6f | 74 6e 6f 74 65 73 2c 20 |ons (foo|tnotes, |
|00000e90| 66 69 67 75 72 65 73 29 | 20 61 72 65 0a 25 25 25 |figures)| are.%%%|
|00000ea0| 20 6e 6f 74 20 64 69 73 | 63 6f 76 65 72 65 64 2e | not dis|covered.|
|00000eb0| 0a 0a 25 25 25 20 54 68 | 65 20 64 65 6d 6f 6e 73 |..%%% Th|e demons|
|00000ec0| 74 72 61 74 65 64 20 73 | 6f 6c 75 74 69 6f 6e 20 |trated s|olution |
|00000ed0| 69 73 20 77 72 69 74 74 | 65 6e 20 69 6e 20 50 6c |is writt|en in Pl|
|00000ee0| 61 69 6e 20 5c 54 65 58 | 7b 7d 2c 20 62 65 63 61 |ain \TeX|{}, beca|
|00000ef0| 75 73 65 20 69 74 20 77 | 61 73 0a 25 25 25 20 65 |use it w|as.%%% e|
|00000f00| 61 73 69 65 72 20 61 6e | 64 20 63 6f 75 6c 64 20 |asier an|d could |
|00000f10| 62 65 20 70 72 65 73 65 | 6e 74 65 64 20 62 65 74 |be prese|nted bet|
|00000f20| 74 65 72 20 61 74 20 74 | 68 65 20 45 75 72 6f 5c |ter at t|he Euro\|
|00000f30| 54 65 58 38 39 20 63 6f | 6e 66 65 72 65 6e 63 65 |TeX89 co|nference|
|00000f40| 20 69 6e 0a 25 25 25 20 | 4b 61 72 6c 73 72 75 68 | in.%%% |Karlsruh|
|00000f50| 65 2e 20 20 41 6e 20 61 | 64 61 70 74 69 6f 6e 20 |e. An a|daption |
|00000f60| 74 6f 20 5c 4c 61 54 65 | 58 7b 7d 20 69 73 20 70 |to \LaTe|X{} is p|
|00000f70| 6f 73 73 69 62 6c 65 2c | 20 62 75 74 20 77 6f 75 |ossible,| but wou|
|00000f80| 6c 64 20 72 65 71 75 69 | 72 65 0a 25 25 25 20 6d |ld requi|re.%%% m|
|00000f90| 6f 64 69 66 69 63 61 74 | 69 6f 6e 73 20 74 6f 20 |odificat|ions to |
|00000fa0| 74 68 65 20 5c 4c 61 54 | 65 58 7b 7d 20 6b 65 72 |the \LaT|eX{} ker|
|00000fb0| 6e 65 6c 2c 20 69 2e 65 | 2e 5c 20 74 68 65 20 6f |nel, i.e|.\ the o|
|00000fc0| 75 74 70 75 74 20 72 6f | 75 74 69 6e 65 20 61 6e |utput ro|utine an|
|00000fd0| 64 20 74 68 65 0a 25 25 | 25 20 6c 61 79 6f 75 74 |d the.%%|% layout|
|00000fe0| 20 70 61 72 61 6d 65 74 | 65 72 73 20 6f 66 20 74 | paramet|ers of t|
|00000ff0| 68 65 20 73 74 61 6e 64 | 61 72 64 20 73 74 79 6c |he stand|ard styl|
|00001000| 65 73 2e 0a 0a 0a 25 25 | 25 20 5c 73 65 63 74 20 |es....%%|% \sect |
|00001010| 54 68 69 73 20 70 72 6f | 67 72 61 6d 20 69 73 20 |This pro|gram is |
|00001020| 66 72 65 65 20 73 6f 66 | 74 77 61 72 65 3b 20 79 |free sof|tware; y|
|00001030| 6f 75 20 63 61 6e 20 72 | 65 64 69 73 74 72 69 62 |ou can r|edistrib|
|00001040| 75 74 65 20 69 74 20 61 | 6e 64 2f 6f 72 0a 25 25 |ute it a|nd/or.%%|
|00001050| 25 20 6d 6f 64 69 66 79 | 20 69 74 20 75 6e 64 65 |% modify| it unde|
|00001060| 72 20 74 68 65 20 74 65 | 72 6d 73 20 6f 66 20 74 |r the te|rms of t|
|00001070| 68 65 20 5c 47 4e 55 7b | 7d 20 47 65 6e 65 72 61 |he \GNU{|} Genera|
|00001080| 6c 20 50 75 62 6c 69 63 | 20 4c 69 63 65 6e 73 65 |l Public| License|
|00001090| 20 61 73 0a 25 25 25 20 | 70 75 62 6c 69 73 68 65 | as.%%% |publishe|
|000010a0| 64 20 62 79 20 74 68 65 | 20 46 72 65 65 20 53 6f |d by the| Free So|
|000010b0| 66 74 77 61 72 65 20 46 | 6f 75 6e 64 61 74 69 6f |ftware F|oundatio|
|000010c0| 6e 3b 20 65 69 74 68 65 | 72 20 76 65 72 73 69 6f |n; eithe|r versio|
|000010d0| 6e 7e 31 2c 20 6f 72 20 | 28 61 74 20 79 6f 75 72 |n~1, or |(at your|
|000010e0| 0a 25 25 25 20 6f 70 74 | 69 6f 6e 29 20 61 6e 79 |.%%% opt|ion) any|
|000010f0| 20 6c 61 74 65 72 20 76 | 65 72 73 69 6f 6e 2e 0a | later v|ersion..|
|00001100| 0a 25 25 25 20 54 68 69 | 73 20 70 72 6f 67 72 61 |.%%% Thi|s progra|
|00001110| 6d 20 69 73 20 64 69 73 | 74 72 69 62 75 74 65 64 |m is dis|tributed|
|00001120| 20 69 6e 20 74 68 65 20 | 68 6f 70 65 20 74 68 61 | in the |hope tha|
|00001130| 74 20 69 74 20 77 69 6c | 6c 20 62 65 20 75 73 65 |t it wil|l be use|
|00001140| 66 75 6c 2c 20 62 75 74 | 0a 25 25 25 20 7b 5c 62 |ful, but|.%%% {\b|
|00001150| 66 20 77 69 74 68 6f 75 | 74 20 61 6e 79 20 77 61 |f withou|t any wa|
|00001160| 72 72 61 6e 74 79 5c 2f | 7d 3b 20 77 69 74 68 6f |rranty\/|}; witho|
|00001170| 75 74 20 65 76 65 6e 20 | 74 68 65 20 69 6d 70 6c |ut even |the impl|
|00001180| 69 65 64 20 77 61 72 72 | 61 6e 74 79 20 6f 66 0a |ied warr|anty of.|
|00001190| 25 25 25 20 7b 5c 62 66 | 20 6d 65 72 63 68 61 6e |%%% {\bf| merchan|
|000011a0| 74 61 62 69 6c 69 74 79 | 5c 2f 7d 20 6f 72 20 7b |tability|\/} or {|
|000011b0| 5c 62 66 20 66 69 74 6e | 65 73 73 20 66 6f 72 20 |\bf fitn|ess for |
|000011c0| 61 20 70 61 72 74 69 63 | 75 6c 61 72 20 70 75 72 |a partic|ular pur|
|000011d0| 70 6f 73 65 7d 2e 20 20 | 53 65 65 0a 25 25 25 20 |pose}. |See.%%% |
|000011e0| 74 68 65 20 5c 47 4e 55 | 7b 7d 20 47 65 6e 65 72 |the \GNU|{} Gener|
|000011f0| 61 6c 20 50 75 62 6c 69 | 63 20 4c 69 63 65 6e 73 |al Publi|c Licens|
|00001200| 65 20 66 6f 72 20 6d 6f | 72 65 20 64 65 74 61 69 |e for mo|re detai|
|00001210| 6c 73 2e 0a 0a 25 25 25 | 20 25 59 6f 75 20 73 68 |ls...%%%| %You sh|
|00001220| 6f 75 6c 64 20 68 61 76 | 65 20 72 65 63 65 69 76 |ould hav|e receiv|
|00001230| 65 64 20 61 20 63 6f 70 | 79 20 6f 66 20 74 68 65 |ed a cop|y of the|
|00001240| 20 5c 47 4e 55 7b 7d 20 | 47 65 6e 65 72 61 6c 20 | \GNU{} |General |
|00001250| 50 75 62 6c 69 63 20 4c | 69 63 65 6e 73 65 0a 25 |Public L|icense.%|
|00001260| 25 25 20 25 61 6c 6f 6e | 67 20 77 69 74 68 20 74 |%% %alon|g with t|
|00001270| 68 69 73 20 70 72 6f 67 | 72 61 6d 3b 20 69 66 20 |his prog|ram; if |
|00001280| 6e 6f 74 2c 20 77 72 69 | 74 65 20 74 6f 20 74 68 |not, wri|te to th|
|00001290| 65 20 46 72 65 65 20 53 | 6f 66 74 77 61 72 65 20 |e Free S|oftware |
|000012a0| 46 6f 75 6e 64 61 74 69 | 6f 6e 2c 0a 25 25 25 20 |Foundati|on,.%%% |
|000012b0| 49 66 20 79 6f 75 20 68 | 61 76 65 20 6e 6f 74 20 |If you h|ave not |
|000012c0| 72 65 63 65 69 76 65 64 | 20 61 20 63 6f 70 79 20 |received| a copy |
|000012d0| 6f 66 20 74 68 65 20 5c | 47 4e 55 7b 7d 20 47 65 |of the \|GNU{} Ge|
|000012e0| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|000012f0| 65 6e 73 65 0a 25 25 25 | 20 61 6c 6f 6e 67 20 77 |ense.%%%| along w|
|00001300| 69 74 68 20 74 68 69 73 | 20 70 72 6f 67 72 61 6d |ith this| program|
|00001310| 2c 20 77 72 69 74 65 20 | 74 6f 20 74 68 65 20 46 |, write |to the F|
|00001320| 72 65 65 20 53 6f 66 74 | 77 61 72 65 20 46 6f 75 |ree Soft|ware Fou|
|00001330| 6e 64 61 74 69 6f 6e 2c | 0a 25 25 25 20 49 6e 63 |ndation,|.%%% Inc|
|00001340| 2e 2c 20 36 37 35 7e 4d | 61 73 73 20 41 76 65 2c |., 675~M|ass Ave,|
|00001350| 20 43 61 6d 62 72 69 64 | 67 65 2c 20 4d 41 7e 30 | Cambrid|ge, MA~0|
|00001360| 32 31 33 39 2c 20 55 53 | 41 2e 0a 0a 0a 25 25 25 |2139, US|A....%%%|
|00001370| 20 5c 73 65 63 74 20 41 | 20 63 68 61 6e 67 65 64 | \sect A| changed|
|00001380| 20 61 72 65 61 20 69 73 | 20 64 65 73 63 72 69 62 | area is| describ|
|00001390| 65 64 20 62 79 20 74 77 | 6f 20 6d 61 72 6b 73 2c |ed by tw|o marks,|
|000013a0| 20 7c 5c 62 65 67 69 6e | 63 68 61 6e 67 65 7c 20 | |\begin|change| |
|000013b0| 61 6e 64 0a 25 25 25 20 | 7c 5c 65 6e 64 63 68 61 |and.%%% ||\endcha|
|000013c0| 6e 67 65 7c 2e 20 20 54 | 68 65 20 6d 65 74 68 6f |nge|. T|he metho|
|000013d0| 64 20 66 6f 72 20 77 72 | 69 74 69 6e 67 20 61 20 |d for wr|iting a |
|000013e0| 63 68 61 6e 67 65 20 62 | 61 72 20 63 6f 6e 73 69 |change b|ar consi|
|000013f0| 73 74 73 20 6f 66 20 74 | 68 72 65 65 0a 25 25 25 |sts of t|hree.%%%|
|00001400| 20 70 61 72 74 73 3a 09 | 46 69 72 73 74 2c 20 69 | parts:.|First, i|
|00001410| 74 20 77 69 6c 6c 20 62 | 65 20 69 6e 64 69 63 61 |t will b|e indica|
|00001420| 74 65 64 20 74 6f 20 74 | 68 65 20 6f 75 74 70 75 |ted to t|he outpu|
|00001430| 74 20 72 6f 75 74 69 6e | 65 20 74 68 61 74 20 61 |t routin|e that a|
|00001440| 20 63 68 61 6e 67 65 0a | 25 25 25 20 68 61 73 20 | change.|%%% has |
|00001450| 6f 63 63 75 72 65 64 2e | 20 20 4e 65 78 74 2c 20 |occured.| Next, |
|00001460| 74 68 65 20 70 6f 73 69 | 74 69 6f 6e 20 6f 66 20 |the posi|tion of |
|00001470| 74 68 65 20 63 68 61 6e | 67 65 64 20 61 72 65 61 |the chan|ged area|
|00001480| 20 77 69 6c 6c 20 62 65 | 20 66 6f 75 6e 64 20 6f | will be| found o|
|00001490| 75 74 0a 25 25 25 20 61 | 6e 64 20 66 69 78 65 64 |ut.%%% a|nd fixed|
|000014a0| 2e 20 20 41 20 6c 69 73 | 74 20 6f 66 20 61 6c 6c |. A lis|t of all|
|000014b0| 20 63 68 61 6e 67 65 64 | 20 61 72 65 61 73 20 69 | changed| areas i|
|000014c0| 73 20 62 75 69 6c 74 2c | 20 74 68 61 74 20 63 61 |s built,| that ca|
|000014d0| 6e 20 61 74 20 6c 61 73 | 74 20 62 65 0a 25 25 25 |n at las|t be.%%%|
|000014e0| 20 6d 61 72 6b 65 64 20 | 62 79 20 74 68 65 20 6f | marked |by the o|
|000014f0| 75 74 70 75 74 20 72 6f | 75 74 69 6e 65 20 75 73 |utput ro|utine us|
|00001500| 69 6e 67 20 76 65 72 74 | 69 63 61 6c 20 72 75 6c |ing vert|ical rul|
|00001510| 65 73 20 61 74 20 74 68 | 65 20 72 69 67 68 74 20 |es at th|e right |
|00001520| 6d 61 72 67 69 6e 2e 0a | 0a 25 25 25 20 42 75 74 |margin..|.%%% But|
|00001530| 20 62 65 66 6f 72 65 20 | 77 65 20 73 74 61 72 74 | before |we start|
|00001540| 20 77 65 20 64 65 63 6c | 61 72 65 20 73 6f 6d 65 | we decl|are some|
|00001550| 20 73 68 6f 72 74 68 61 | 6e 64 73 20 66 6f 72 20 | shortha|nds for |
|00001560| 63 61 74 65 67 6f 72 79 | 20 63 6f 64 65 73 2e 20 |category| codes. |
|00001570| 20 42 79 0a 25 25 25 20 | 64 65 63 6c 61 72 69 6e | By.%%% |declarin|
|00001580| 67 20 74 68 65 20 61 74 | 20 73 69 67 6e 7e 28 60 |g the at| sign~(`|
|00001590| 7c 40 7c 27 29 20 61 73 | 20 77 65 6c 6c 20 61 73 ||@|') as| well as|
|000015a0| 20 74 68 65 20 75 6e 64 | 65 72 73 63 6f 72 65 7e | the und|erscore~|
|000015b0| 60 28 7c 5f 7c 29 27 20 | 61 73 0a 25 25 25 20 6c |`(|_|)' |as.%%% l|
|000015c0| 65 74 74 65 72 73 20 77 | 65 20 63 61 6e 20 75 73 |etters w|e can us|
|000015d0| 65 20 74 68 65 6d 20 69 | 6e 20 6f 75 72 20 6d 61 |e them i|n our ma|
|000015e0| 63 72 6f 73 2e 09 28 49 | 20 61 67 72 65 65 20 77 |cros..(I| agree w|
|000015f0| 69 74 68 20 44 2e 7e 4b | 6e 75 74 68 20 74 68 61 |ith D.~K|nuth tha|
|00001600| 74 0a 25 25 25 20 7c 5c | 69 64 65 6e 74 69 66 69 |t.%%% |\|identifi|
|00001610| 65 72 5f 73 65 76 65 72 | 61 6c 5f 77 6f 72 64 73 |er_sever|al_words|
|00001620| 5f 6c 6f 6e 67 7c 20 69 | 73 20 6d 6f 72 65 20 72 |_long| i|s more r|
|00001630| 65 61 64 61 62 6c 65 20 | 74 68 61 6e 0a 25 25 25 |eadable |than.%%%|
|00001640| 20 7c 5c 49 64 65 6e 74 | 69 66 69 65 72 53 65 76 | |\Ident|ifierSev|
|00001650| 65 72 61 6c 57 6f 72 64 | 73 4c 6f 6e 67 7c 20 61 |eralWord|sLong| a|
|00001660| 6e 64 20 69 6e 20 65 76 | 65 72 79 20 63 61 73 65 |nd in ev|ery case|
|00001670| 20 62 65 74 74 65 72 20 | 74 68 61 6e 20 7c 5c 70 | better |than |\p|
|00001680| 40 40 40 73 7c 2e 29 0a | 25 25 25 20 57 69 74 68 |@@@s|.).|%%% With|
|00001690| 20 74 68 65 20 61 74 20 | 73 69 67 6e 20 77 65 20 | the at |sign we |
|000016a0| 63 61 6e 20 75 73 65 20 | 74 68 65 20 60 60 70 72 |can use |the ``pr|
|000016b0| 69 76 61 74 65 27 27 20 | 50 6c 61 69 6e 20 6d 61 |ivate'' |Plain ma|
|000016c0| 63 72 6f 73 20 61 6e 64 | 20 77 69 74 68 20 74 68 |cros and| with th|
|000016d0| 65 0a 25 25 25 20 75 6e | 64 65 72 73 63 6f 72 65 |e.%%% un|derscore|
|000016e0| 20 77 65 20 63 61 6e 20 | 6d 61 6b 65 20 6f 75 72 | we can |make our|
|000016f0| 20 6f 77 6e 20 6d 61 63 | 72 6f 73 20 6d 6f 72 65 | own mac|ros more|
|00001700| 20 72 65 61 64 61 62 6c | 65 2e 20 20 42 75 74 20 | readabl|e. But |
|00001710| 61 73 20 77 65 20 68 61 | 76 65 20 74 6f 0a 25 25 |as we ha|ve to.%%|
|00001720| 25 20 72 65 73 74 6f 72 | 65 20 74 68 65 73 65 20 |% restor|e these |
|00001730| 63 61 74 65 67 6f 72 79 | 20 63 6f 64 65 73 20 61 |category| codes a|
|00001740| 74 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 69 |t the en|d of thi|
|00001750| 73 20 6d 61 63 72 6f 20 | 66 69 6c 65 20 77 65 20 |s macro |file we |
|00001760| 73 74 6f 72 65 0a 25 25 | 25 20 74 68 65 69 72 20 |store.%%|% their |
|00001770| 66 6f 72 6d 65 72 20 76 | 61 6c 75 65 73 20 69 6e |former v|alues in|
|00001780| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c 20 73 65 71 | the con|trol seq|
|00001790| 75 65 6e 63 65 73 20 7c | 5c 61 74 63 6f 64 65 7c |uences ||\atcode||
|000017a0| 20 61 6e 64 20 7c 5c 75 | 73 63 6f 64 65 7c 2e 0a | and |\u|scode|..|
|000017b0| 25 25 25 20 54 68 69 73 | 20 6d 65 74 68 6f 64 20 |%%% This| method |
|000017c0| 69 73 20 62 65 74 74 65 | 72 20 74 68 61 6e 20 74 |is bette|r than t|
|000017d0| 6f 20 75 73 65 20 61 20 | 67 72 6f 75 70 20 62 65 |o use a |group be|
|000017e0| 63 61 75 73 65 20 6e 6f | 74 20 61 6c 6c 20 6d 61 |cause no|t all ma|
|000017f0| 63 72 6f 73 20 68 61 76 | 65 20 74 6f 0a 25 25 25 |cros hav|e to.%%%|
|00001800| 20 62 65 20 64 65 66 69 | 6e 65 64 20 67 6c 6f 62 | be defi|ned glob|
|00001810| 61 6c 20 74 68 69 73 20 | 77 61 79 2e 0a 0a 25 25 |al this |way...%%|
|00001820| 25 20 5c 62 65 67 69 6e | 70 72 6f 67 0a 5c 63 68 |% \begin|prog.\ch|
|00001830| 61 72 64 65 66 5c 6c 65 | 74 74 65 72 3d 31 31 0a |ardef\le|tter=11.|
|00001840| 0a 5c 63 68 61 72 64 65 | 66 5c 61 74 63 6f 64 65 |.\charde|f\atcode|
|00001850| 3d 5c 63 61 74 63 6f 64 | 65 60 5c 40 0a 5c 63 68 |=\catcod|e`\@.\ch|
|00001860| 61 72 64 65 66 5c 75 73 | 63 6f 64 65 3d 5c 63 61 |ardef\us|code=\ca|
|00001870| 74 63 6f 64 65 60 5c 5f | 0a 0a 5c 63 61 74 63 6f |tcode`\_|..\catco|
|00001880| 64 65 60 5c 40 3d 5c 6c | 65 74 74 65 72 0a 5c 63 |de`\@=\l|etter.\c|
|00001890| 61 74 63 6f 64 65 60 5c | 5f 3d 5c 6c 65 74 74 65 |atcode`\|_=\lette|
|000018a0| 72 0a 25 25 25 20 5c 65 | 6e 64 70 72 6f 67 0a 0a |r.%%% \e|ndprog..|
|000018b0| 0a 0a 0a 25 25 25 20 5c | 63 68 61 70 20 54 72 69 |...%%% \|chap Tri|
|000018c0| 67 67 65 72 69 6e 67 20 | 74 68 65 20 4f 75 74 70 |ggering |the Outp|
|000018d0| 75 74 20 52 6f 75 74 69 | 6e 65 2e 0a 0a 25 25 25 |ut Routi|ne...%%%|
|000018e0| 20 5c 62 65 67 69 6e 7b | 73 6c 6f 70 70 79 70 61 | \begin{|sloppypa|
|000018f0| 72 7d 0a 25 25 25 20 46 | 69 72 73 74 2c 20 74 68 |r}.%%% F|irst, th|
|00001900| 65 20 6f 75 74 70 75 74 | 20 72 6f 75 74 69 6e 65 |e output| routine|
|00001910| 20 6d 75 73 74 20 6b 6e | 6f 77 20 74 68 61 74 20 | must kn|ow that |
|00001920| 63 68 61 6e 67 65 73 20 | 6f 63 63 75 72 65 64 2e |changes |occured.|
|00001930| 20 20 54 68 69 73 20 69 | 73 20 64 6f 6e 65 0a 25 | This i|s done.%|
|00001940| 25 25 20 62 79 20 74 68 | 65 20 6d 61 63 72 6f 73 |%% by th|e macros|
|00001950| 20 7c 5c 62 65 67 69 6e | 63 68 61 6e 67 65 7c 20 | |\begin|change| |
|00001960| 61 6e 64 20 7c 5c 65 6e | 64 63 68 61 6e 67 65 7c |and |\en|dchange||
|00001970| 20 74 68 61 74 20 61 70 | 70 65 6e 64 20 61 20 72 | that ap|pend a r|
|00001980| 65 73 65 72 76 65 64 0a | 25 25 25 20 70 65 6e 61 |eserved.|%%% pena|
|00001990| 6c 74 79 20 76 61 6c 75 | 65 20 7c 5c 62 72 65 61 |lty valu|e |\brea|
|000019a0| 6b 5f 70 65 6e 61 6c 74 | 79 7c 20 74 6f 20 74 68 |k_penalt|y| to th|
|000019b0| 65 20 63 75 72 72 65 6e | 74 20 6c 69 73 74 20 74 |e curren|t list t|
|000019c0| 68 61 74 20 69 73 20 62 | 65 6c 6f 77 0a 25 25 25 |hat is b|elow.%%%|
|000019d0| 20 24 2d 31 30 5c 2c 30 | 30 30 24 2e 20 20 54 68 | $-10\,0|00$. Th|
|000019e0| 65 20 70 65 6e 61 6c 74 | 79 20 77 69 6c 6c 20 62 |e penalt|y will b|
|000019f0| 65 20 69 6e 20 74 68 65 | 20 72 61 6e 67 65 20 24 |e in the| range $|
|00001a00| 7c 5c 63 68 61 6e 67 65 | 5f 70 65 6e 61 6c 74 79 ||\change|_penalty|
|00001a10| 5f 67 72 6f 75 70 7c 0a | 25 25 25 20 5c 63 64 6f |_group|.|%%% \cdo|
|00001a20| 74 20 31 30 30 20 2d 20 | 39 39 20 5c 6c 64 6f 74 |t 100 - |99 \ldot|
|00001a30| 73 20 7c 5c 63 68 61 6e | 67 65 5f 70 65 6e 61 6c |s |\chan|ge_penal|
|00001a40| 74 79 5f 67 72 6f 75 70 | 7c 20 5c 63 64 6f 74 20 |ty_group|| \cdot |
|00001a50| 31 30 30 24 2e 0a 25 25 | 25 20 46 6f 72 20 74 68 |100$..%%|% For th|
|00001a60| 65 20 6f 75 74 70 75 74 | 20 69 74 20 6d 75 73 74 |e output| it must|
|00001a70| 20 62 65 20 64 69 66 66 | 65 72 65 6e 74 69 61 74 | be diff|erentiat|
|00001a80| 65 64 20 69 66 20 74 68 | 65 20 6d 61 72 6b 20 69 |ed if th|e mark i|
|00001a90| 6e 64 69 63 61 74 65 73 | 0a 25 25 25 20 62 65 67 |ndicates|.%%% beg|
|00001aa0| 69 6e 20 6f 72 20 65 6e | 64 20 6f 66 20 74 68 65 |in or en|d of the|
|00001ab0| 20 63 68 61 6e 67 65 64 | 20 61 72 65 61 2e 20 20 | changed| area. |
|00001ac0| 54 68 69 73 20 69 73 20 | 64 6f 6e 65 20 77 69 74 |This is |done wit|
|00001ad0| 68 20 74 68 65 20 76 61 | 6c 75 65 73 0a 25 25 25 |h the va|lues.%%%|
|00001ae0| 20 7c 5c 63 68 61 6e 67 | 65 5f 70 65 6e 61 6c 74 | |\chang|e_penalt|
|00001af0| 79 5f 62 65 67 69 6e 7c | 20 61 6e 64 20 7c 5c 63 |y_begin|| and |\c|
|00001b00| 68 61 6e 67 65 5f 70 65 | 6e 61 6c 74 79 5f 65 6e |hange_pe|nalty_en|
|00001b10| 64 7c 20 74 68 61 74 20 | 61 72 65 20 75 73 65 64 |d| that |are used|
|00001b20| 20 61 73 20 74 68 65 0a | 25 25 25 20 73 65 63 6f | as the.|%%% seco|
|00001b30| 6e 64 2d 74 6f 2d 6c 61 | 73 74 20 64 69 67 69 74 |nd-to-la|st digit|
|00001b40| 20 6f 66 20 74 68 65 20 | 63 68 61 6e 67 65 20 70 | of the |change p|
|00001b50| 65 6e 61 6c 74 79 2e 0a | 25 25 25 20 5c 65 6e 64 |enalty..|%%% \end|
|00001b60| 7b 73 6c 6f 70 70 79 70 | 61 72 7d 0a 0a 25 25 25 |{sloppyp|ar}..%%%|
|00001b70| 20 49 74 20 6d 75 73 74 | 20 61 6c 73 6f 20 62 65 | It must| also be|
|00001b80| 20 64 69 66 66 65 72 65 | 6e 74 69 61 74 65 64 20 | differe|ntiated |
|00001b90| 62 65 74 77 65 65 6e 20 | 74 68 65 20 62 65 67 69 |between |the begi|
|00001ba0| 6e 6e 69 6e 67 20 6f 66 | 20 61 20 6d 61 72 6b 20 |nning of| a mark |
|00001bb0| 62 65 69 6e 67 20 69 6e | 0a 25 25 25 20 68 6f 72 |being in|.%%% hor|
|00001bc0| 69 7a 6f 6e 74 61 6c 20 | 6f 72 20 76 65 72 74 69 |izontal |or verti|
|00001bd0| 63 61 6c 20 6d 6f 64 65 | 2e 20 20 49 6e 20 68 6f |cal mode|. In ho|
|00001be0| 72 69 7a 6f 6e 74 61 6c | 20 6d 6f 64 65 2c 20 74 |rizontal| mode, t|
|00001bf0| 68 65 20 63 68 61 6e 67 | 65 20 62 61 72 20 6d 75 |he chang|e bar mu|
|00001c00| 73 74 0a 25 25 25 20 6e | 6f 74 20 62 65 67 69 6e |st.%%% n|ot begin|
|00001c10| 20 61 74 20 74 68 65 20 | 62 61 73 65 6c 69 6e 65 | at the |baseline|
|00001c20| 20 6f 66 20 74 68 65 20 | 61 63 74 75 61 6c 20 74 | of the |actual t|
|00001c30| 65 78 74 20 70 6f 73 69 | 74 69 6f 6e 2c 20 62 75 |ext posi|tion, bu|
|00001c40| 74 20 6f 6e 20 74 6f 70 | 20 6f 66 20 74 68 65 0a |t on top| of the.|
|00001c50| 25 25 25 20 61 63 74 75 | 61 6c 20 6c 69 6e 65 2e |%%% actu|al line.|
|00001c60| 20 20 54 68 69 73 20 69 | 73 20 6d 61 72 6b 65 64 | This i|s marked|
|00001c70| 20 69 6e 20 74 68 65 20 | 6c 61 73 74 20 64 69 67 | in the |last dig|
|00001c80| 69 74 2c 20 61 6e 20 6f | 64 64 20 64 69 67 69 74 |it, an o|dd digit|
|00001c90| 20 77 69 6c 6c 20 62 65 | 0a 25 25 25 20 75 73 65 | will be|.%%% use|
|00001ca0| 64 20 69 6e 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 |d in hor|izontal |
|00001cb0| 6d 6f 64 65 2e 0a 0a 25 | 25 25 20 4e 6f 74 65 20 |mode...%|%% Note |
|00001cc0| 74 68 61 74 20 74 68 65 | 20 76 61 6c 75 65 73 20 |that the| values |
|00001cd0| 6d 65 6e 74 69 6f 6e 65 | 64 20 61 62 6f 76 65 20 |mentione|d above |
|00001ce0| 61 72 65 20 75 73 65 64 | 20 61 73 20 64 69 67 69 |are used| as digi|
|00001cf0| 74 73 20 68 65 72 65 20 | 74 68 61 74 20 63 61 6e |ts here |that can|
|00001d00| 20 62 65 0a 25 25 25 20 | 63 6f 6e 63 61 74 65 6e | be.%%% |concaten|
|00001d10| 61 74 65 64 2e 20 20 49 | 66 20 74 68 65 79 20 61 |ated. I|f they a|
|00001d20| 72 65 20 6e 6f 74 20 66 | 6f 6c 6c 6f 77 65 64 20 |re not f|ollowed |
|00001d30| 62 79 20 61 6e 20 6f 74 | 68 65 72 20 64 69 67 69 |by an ot|her digi|
|00001d40| 74 20 74 68 65 79 20 73 | 68 6f 75 6c 64 20 62 65 |t they s|hould be|
|00001d50| 0a 25 25 25 20 74 65 72 | 6d 69 6e 61 74 65 64 20 |.%%% ter|minated |
|00001d60| 62 79 20 7c 5c 73 70 61 | 63 65 7c 20 74 6f 20 73 |by |\spa|ce| to s|
|00001d70| 74 6f 70 20 74 68 65 20 | 6c 6f 6f 6b 2d 61 68 65 |top the |look-ahe|
|00001d80| 61 64 20 66 6f 72 20 64 | 69 67 69 74 73 2e 0a 0a |ad for d|igits...|
|00001d90| 25 25 25 20 54 68 65 73 | 65 20 69 6e 74 65 72 61 |%%% Thes|e intera|
|00001da0| 63 74 69 6f 6e 73 20 77 | 69 74 68 20 74 68 65 20 |ctions w|ith the |
|00001db0| 6f 75 74 70 75 74 20 72 | 6f 75 74 69 6e 65 20 61 |output r|outine a|
|00001dc0| 64 64 73 20 61 20 6c 6f | 74 20 6f 66 20 64 65 61 |dds a lo|t of dea|
|00001dd0| 64 20 63 79 63 6c 65 73 | 3b 20 77 65 0a 25 25 25 |d cycles|; we.%%%|
|00001de0| 20 6d 75 73 74 20 74 68 | 65 72 65 66 6f 72 65 20 | must th|erefore |
|00001df0| 69 6e 63 72 65 61 73 65 | 20 7c 5c 6d 61 78 64 65 |increase| |\maxde|
|00001e00| 61 64 63 79 63 6c 65 73 | 7c 20 74 6f 20 70 72 65 |adcycles|| to pre|
|00001e10| 76 65 6e 74 20 5c 54 65 | 58 7b 7d 20 66 72 6f 6d |vent \Te|X{} from|
|00001e20| 20 67 72 75 6d 62 6c 69 | 6e 67 2e 0a 0a 25 25 25 | grumbli|ng...%%%|
|00001e30| 20 5c 62 65 67 69 6e 70 | 72 6f 67 0a 5c 64 65 66 | \beginp|rog.\def|
|00001e40| 5c 63 68 61 6e 67 65 5f | 70 65 6e 61 6c 74 79 5f |\change_|penalty_|
|00001e50| 67 72 6f 75 70 7b 2d 31 | 30 31 7d 0a 5c 64 65 66 |group{-1|01}.\def|
|00001e60| 5c 63 68 61 6e 67 65 5f | 70 65 6e 61 6c 74 79 5f |\change_|penalty_|
|00001e70| 62 65 67 69 6e 7b 30 7d | 0a 5c 64 65 66 5c 63 68 |begin{0}|.\def\ch|
|00001e80| 61 6e 67 65 5f 70 65 6e | 61 6c 74 79 5f 65 6e 64 |ange_pen|alty_end|
|00001e90| 7b 31 7d 0a 0a 5c 6d 61 | 78 64 65 61 64 63 79 63 |{1}..\ma|xdeadcyc|
|00001ea0| 6c 65 73 3d 31 30 30 0a | 25 25 25 20 5c 65 6e 64 |les=100.|%%% \end|
|00001eb0| 70 72 6f 67 0a 0a 0a 25 | 25 25 20 5c 73 65 63 74 |prog...%|%% \sect|
|00001ec0| 20 54 68 65 20 6d 61 72 | 6b 73 20 73 65 74 20 74 | The mar|ks set t|
|00001ed0| 68 65 20 63 68 61 6e 67 | 65 20 70 65 6e 61 6c 74 |he chang|e penalt|
|00001ee0| 79 20 76 61 6c 75 65 20 | 28 69 6e 63 6c 75 64 69 |y value |(includi|
|00001ef0| 6e 67 20 74 68 65 20 69 | 6e 64 69 63 61 74 69 6f |ng the i|ndicatio|
|00001f00| 6e 0a 25 25 25 20 6f 66 | 20 62 65 67 69 6e 20 6f |n.%%% of| begin o|
|00001f10| 72 20 65 6e 64 20 6f 66 | 20 6d 61 72 6b 29 2e 20 |r end of| mark). |
|00001f20| 20 54 68 65 20 72 65 73 | 74 20 28 7c 5c 74 72 69 | The res|t (|\tri|
|00001f30| 67 67 65 72 5f 6f 75 74 | 70 75 74 7c 29 20 69 73 |gger_out|put|) is|
|00001f40| 20 74 68 65 20 73 61 6d | 65 20 61 63 74 69 6f 6e | the sam|e action|
|00001f50| 0a 25 25 25 20 66 6f 72 | 20 62 6f 74 68 2e 20 41 |.%%% for| both. A|
|00001f60| 6e 20 65 6e 64 20 63 68 | 61 6e 67 65 20 6d 61 72 |n end ch|ange mar|
|00001f70| 6b 20 69 6e 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 |k in hor|izontal |
|00001f80| 6d 6f 64 65 20 63 61 6e | 20 62 65 20 70 72 65 63 |mode can| be prec|
|00001f90| 65 65 64 65 64 20 62 79 | 0a 25 25 25 20 67 6c 75 |eeded by|.%%% glu|
|00001fa0| 65 20 74 68 61 74 20 63 | 6f 75 6c 64 20 63 61 75 |e that c|ould cau|
|00001fb0| 73 65 20 61 20 6c 69 6e | 65 20 62 72 65 61 6b 2c |se a lin|e break,|
|00001fc0| 20 74 68 75 73 20 69 6e | 63 6c 75 64 69 6e 67 20 | thus in|cluding |
|00001fd0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6c 69 |the foll|owing li|
|00001fe0| 6e 65 20 74 6f 0a 25 25 | 25 20 74 68 65 20 63 68 |ne to.%%|% the ch|
|00001ff0| 61 6e 67 65 20 61 72 65 | 61 20 61 73 20 77 65 6c |ange are|a as wel|
|00002000| 6c 2e 20 20 54 6f 20 61 | 76 6f 69 64 20 74 68 69 |l. To a|void thi|
|00002010| 73 20 75 6e 77 61 6e 74 | 65 64 20 62 65 68 61 76 |s unwant|ed behav|
|00002020| 69 6f 75 72 2c 20 74 68 | 65 20 73 70 61 63 65 20 |iour, th|e space |
|00002030| 69 73 0a 25 25 25 20 73 | 61 76 65 64 20 69 6e 20 |is.%%% s|aved in |
|00002040| 7c 5c 73 61 76 65 5f 73 | 70 61 63 65 7c 2c 20 64 ||\save_s|pace|, d|
|00002050| 69 73 63 61 72 64 65 64 | 20 69 6e 20 66 72 6f 6e |iscarded| in fron|
|00002060| 74 20 6f 66 20 74 68 65 | 20 6d 61 72 6b 20 61 6e |t of the| mark an|
|00002070| 64 20 72 65 73 74 6f 72 | 65 64 0a 25 25 25 20 61 |d restor|ed.%%% a|
|00002080| 66 74 65 72 77 61 72 64 | 73 2e 0a 0a 25 25 25 20 |fterward|s...%%% |
|00002090| 5c 62 65 67 69 6e 70 72 | 6f 67 0a 5c 6e 65 77 63 |\beginpr|og.\newc|
|000020a0| 6f 75 6e 74 5c 62 72 65 | 61 6b 5f 70 65 6e 61 6c |ount\bre|ak_penal|
|000020b0| 74 79 0a 5c 6e 65 77 73 | 6b 69 70 5c 73 61 76 65 |ty.\news|kip\save|
|000020c0| 5f 73 70 61 63 65 0a 0a | 5c 64 65 66 5c 62 65 67 |_space..|\def\beg|
|000020d0| 69 6e 63 68 61 6e 67 65 | 7b 25 0a 20 20 20 5c 62 |inchange|{%. \b|
|000020e0| 72 65 61 6b 5f 70 65 6e | 61 6c 74 79 3d 5c 63 68 |reak_pen|alty=\ch|
|000020f0| 61 6e 67 65 5f 70 65 6e | 61 6c 74 79 5f 67 72 6f |ange_pen|alty_gro|
|00002100| 75 70 5c 63 68 61 6e 67 | 65 5f 70 65 6e 61 6c 74 |up\chang|e_penalt|
|00002110| 79 5f 62 65 67 69 6e 30 | 0a 20 20 20 5c 74 72 69 |y_begin0|. \tri|
|00002120| 67 67 65 72 5f 6f 75 74 | 70 75 74 0a 20 20 20 7d |gger_out|put. }|
|00002130| 0a 5c 64 65 66 5c 65 6e | 64 63 68 61 6e 67 65 7b |.\def\en|dchange{|
|00002140| 25 0a 20 20 20 5c 69 66 | 68 6d 6f 64 65 20 20 5c |%. \if|hmode \|
|00002150| 73 61 76 65 5f 73 70 61 | 63 65 3d 5c 6c 61 73 74 |save_spa|ce=\last|
|00002160| 73 6b 69 70 20 5c 75 6e | 73 6b 69 70 20 20 5c 66 |skip \un|skip \f|
|00002170| 69 0a 20 20 20 5c 62 72 | 65 61 6b 5f 70 65 6e 61 |i. \br|eak_pena|
|00002180| 6c 74 79 3d 5c 63 68 61 | 6e 67 65 5f 70 65 6e 61 |lty=\cha|nge_pena|
|00002190| 6c 74 79 5f 67 72 6f 75 | 70 5c 63 68 61 6e 67 65 |lty_grou|p\change|
|000021a0| 5f 70 65 6e 61 6c 74 79 | 5f 65 6e 64 30 0a 20 20 |_penalty|_end0. |
|000021b0| 20 5c 74 72 69 67 67 65 | 72 5f 6f 75 74 70 75 74 | \trigge|r_output|
|000021c0| 0a 20 20 20 5c 69 66 68 | 6d 6f 64 65 20 20 5c 68 |. \ifh|mode \h|
|000021d0| 73 6b 69 70 5c 73 61 76 | 65 5f 73 70 61 63 65 09 |skip\sav|e_space.|
|000021e0| 5c 66 69 0a 20 20 20 7d | 0a 25 25 25 20 5c 65 6e |\fi. }|.%%% \en|
|000021f0| 64 70 72 6f 67 0a 0a 0a | 25 25 25 20 5c 73 65 63 |dprog...|%%% \sec|
|00002200| 74 20 49 6e 20 7c 5c 74 | 72 69 67 67 65 72 5f 6f |t In |\t|rigger_o|
|00002210| 75 74 70 75 74 7c 20 74 | 68 65 20 72 65 61 6c 20 |utput| t|he real |
|00002220| 6f 75 74 70 75 74 20 74 | 72 69 67 67 65 72 20 69 |output t|rigger i|
|00002230| 73 20 64 6f 6e 65 2e 20 | 20 57 65 20 6d 75 73 74 |s done. | We must|
|00002240| 20 63 6f 6e 73 69 64 65 | 72 0a 25 25 25 20 74 68 | conside|r.%%% th|
|00002250| 61 74 20 61 6e 20 7c 5c | 6f 75 74 70 75 74 7c 2d |at an |\|output|-|
|00002260| 69 6e 76 6f 63 61 74 69 | 6f 6e 20 62 79 20 6f 75 |invocati|on by ou|
|00002270| 72 20 7c 5c 62 72 65 61 | 6b 5f 70 65 6e 61 6c 74 |r |\brea|k_penalt|
|00002280| 79 7c 20 63 61 6e 20 62 | 65 20 64 69 73 63 61 72 |y| can b|e discar|
|00002290| 64 65 64 20 61 74 0a 25 | 25 25 20 74 68 65 20 62 |ded at.%|%% the b|
|000022a0| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 61 20 70 61 |eginning| of a pa|
|000022b0| 67 65 2e 20 20 53 6f 20 | 77 65 20 74 72 69 67 67 |ge. So |we trigg|
|000022c0| 65 72 20 74 68 65 20 6f | 75 74 70 75 74 20 72 6f |er the o|utput ro|
|000022d0| 75 74 69 6e 65 20 74 77 | 69 63 65 2c 20 66 69 72 |utine tw|ice, fir|
|000022e0| 73 74 0a 25 25 25 20 77 | 69 74 68 20 61 20 73 70 |st.%%% w|ith a sp|
|000022f0| 65 63 69 61 6c 20 70 65 | 6e 61 6c 74 79 20 76 61 |ecial pe|nalty va|
|00002300| 6c 75 65 20 74 68 61 74 | 20 69 73 20 32 7e 6c 65 |lue that| is 2~le|
|00002310| 73 73 20 74 68 61 6e 20 | 74 68 65 20 63 6f 72 72 |ss than |the corr|
|00002320| 65 63 74 20 76 61 6c 75 | 65 0a 25 25 25 20 28 69 |ect valu|e.%%% (i|
|00002330| 6e 63 6c 75 64 69 6e 67 | 20 74 68 65 20 63 6f 64 |ncluding| the cod|
|00002340| 65 20 66 6f 72 20 68 6f | 72 69 7a 6f 6e 74 61 6c |e for ho|rizontal|
|00002350| 20 6f 72 20 76 65 72 74 | 69 63 61 6c 20 6d 6f 64 | or vert|ical mod|
|00002360| 65 29 2e 20 20 41 66 74 | 65 72 20 74 68 65 20 66 |e). Aft|er the f|
|00002370| 69 72 73 74 0a 25 25 25 | 20 70 61 67 65 20 62 72 |irst.%%%| page br|
|00002380| 65 61 6b 20 69 74 20 69 | 73 20 61 73 73 65 72 74 |eak it i|s assert|
|00002390| 65 64 20 74 68 61 74 20 | 74 68 65 20 63 75 72 72 |ed that |the curr|
|000023a0| 65 6e 74 20 6c 69 73 74 | 20 69 73 20 65 6d 70 74 |ent list| is empt|
|000023b0| 79 2e 20 20 54 68 65 20 | 6f 75 74 70 75 74 0a 25 |y. The |output.%|
|000023c0| 25 25 20 72 6f 75 74 69 | 6e 65 20 68 61 73 20 74 |%% routi|ne has t|
|000023d0| 6f 20 73 61 76 65 20 74 | 68 65 20 66 6f 72 6d 65 |o save t|he forme|
|000023e0| 72 20 70 61 67 65 20 63 | 6f 6e 74 65 6e 74 73 20 |r page c|ontents |
|000023f0| 69 66 20 6e 65 63 65 73 | 73 61 72 79 2e 0a 0a 25 |if neces|sary...%|
|00002400| 25 25 20 4e 6f 77 20 77 | 65 20 73 65 74 20 74 68 |%% Now w|e set th|
|00002410| 65 20 70 65 6e 61 6c 74 | 79 20 74 6f 20 74 68 65 |e penalt|y to the|
|00002420| 20 63 6f 72 72 65 63 74 | 20 76 61 6c 75 65 2e 20 | correct| value. |
|00002430| 20 54 68 65 20 73 65 63 | 6f 6e 64 20 70 61 67 65 | The sec|ond page|
|00002440| 20 62 72 65 61 6b 20 64 | 6f 65 73 0a 25 25 25 20 | break d|oes.%%% |
|00002450| 74 68 65 20 72 65 61 6c | 20 77 6f 72 6b 2c 20 72 |the real| work, r|
|00002460| 65 73 74 6f 72 65 73 20 | 74 68 65 20 70 61 67 65 |estores |the page|
|00002470| 20 63 6f 6e 74 65 6e 74 | 73 20 61 6e 64 20 68 61 | content|s and ha|
|00002480| 6e 64 6c 65 73 20 74 68 | 65 20 73 70 6c 69 74 0a |ndles th|e split.|
|00002490| 25 25 25 20 69 6e 73 65 | 72 74 69 6f 6e 73 20 28 |%%% inse|rtions (|
|000024a0| 66 6f 6f 74 6e 6f 74 65 | 73 2c 20 66 69 67 75 72 |footnote|s, figur|
|000024b0| 65 73 2c 7e 5c 64 6f 74 | 73 29 0a 0a 25 25 25 20 |es,~\dot|s)..%%% |
|000024c0| 49 6e 20 68 6f 72 69 7a | 6f 6e 74 61 6c 20 6d 6f |In horiz|ontal mo|
|000024d0| 64 65 20 7c 5c 73 70 61 | 63 65 66 61 63 74 6f 72 |de |\spa|cefactor|
|000024e0| 7c 20 6d 75 73 74 20 6e | 6f 74 20 62 65 20 64 65 || must n|ot be de|
|000024f0| 73 74 72 6f 79 65 64 2e | 0a 0a 25 25 25 20 5c 62 |stroyed.|..%%% \b|
|00002500| 65 67 69 6e 70 72 6f 67 | 0a 5c 6e 65 77 63 6f 75 |eginprog|.\newcou|
|00002510| 6e 74 5c 73 61 76 65 5f | 73 70 61 63 65 5f 66 61 |nt\save_|space_fa|
|00002520| 63 74 6f 72 0a 0a 5c 64 | 65 66 5c 74 72 69 67 67 |ctor..\d|ef\trigg|
|00002530| 65 72 5f 6f 75 74 70 75 | 74 7b 25 0a 20 20 20 5c |er_outpu|t{%. \|
|00002540| 69 66 69 6e 6e 65 72 20 | 20 5c 65 72 72 6d 65 73 |ifinner | \errmes|
|00002550| 73 61 67 65 7b 43 68 61 | 6e 67 65 20 63 61 6e 6e |sage{Cha|nge cann|
|00002560| 6f 74 20 62 65 20 6d 61 | 72 6b 65 64 20 69 6e 73 |ot be ma|rked ins|
|00002570| 69 64 65 20 61 20 62 6f | 78 7d 25 0a 20 20 20 5c |ide a bo|x}%. \|
|00002580| 65 6c 73 65 0a 20 20 20 | 20 20 20 5c 69 66 76 6d |else. | \ifvm|
|00002590| 6f 64 65 09 5c 6c 65 74 | 5c 64 6f 5f 69 6e 5f 76 |ode.\let|\do_in_v|
|000025a0| 6d 6f 64 65 3d 5c 72 65 | 6c 61 78 0a 09 20 5c 61 |mode=\re|lax.. \a|
|000025b0| 64 76 61 6e 63 65 20 5c | 62 72 65 61 6b 5f 70 65 |dvance \|break_pe|
|000025c0| 6e 61 6c 74 79 20 62 79 | 20 2d 32 0a 20 20 20 20 |nalty by| -2. |
|000025d0| 20 20 5c 65 6c 73 65 20 | 20 5c 73 61 76 65 5f 73 | \else | \save_s|
|000025e0| 70 61 63 65 5f 66 61 63 | 74 6f 72 3d 5c 73 70 61 |pace_fac|tor=\spa|
|000025f0| 63 65 66 61 63 74 6f 72 | 0a 09 20 5c 6c 65 74 5c |cefactor|.. \let\|
|00002600| 64 6f 5f 69 6e 5f 76 6d | 6f 64 65 3d 5c 76 61 64 |do_in_vm|ode=\vad|
|00002610| 6a 75 73 74 0a 09 20 5c | 61 64 76 61 6e 63 65 20 |just.. \|advance |
|00002620| 5c 62 72 65 61 6b 5f 70 | 65 6e 61 6c 74 79 20 62 |\break_p|enalty b|
|00002630| 79 20 2d 33 0a 20 20 20 | 20 20 20 5c 66 69 0a 20 |y -3. | \fi. |
|00002640| 20 20 20 20 20 5c 64 6f | 5f 69 6e 5f 76 6d 6f 64 | \do|_in_vmod|
|00002650| 65 7b 25 0a 09 20 5c 70 | 65 6e 61 6c 74 79 5c 62 |e{%.. \p|enalty\b|
|00002660| 72 65 61 6b 5f 70 65 6e | 61 6c 74 79 0a 09 20 5c |reak_pen|alty.. \|
|00002670| 6e 75 6c 6c 0a 09 20 5c | 61 64 76 61 6e 63 65 20 |null.. \|advance |
|00002680| 5c 62 72 65 61 6b 5f 70 | 65 6e 61 6c 74 79 20 62 |\break_p|enalty b|
|00002690| 79 20 32 20 20 5c 70 65 | 6e 61 6c 74 79 5c 62 72 |y 2 \pe|nalty\br|
|000026a0| 65 61 6b 5f 70 65 6e 61 | 6c 74 79 0a 09 20 7d 25 |eak_pena|lty.. }%|
|000026b0| 0a 20 20 20 20 20 20 5c | 69 66 68 6d 6f 64 65 09 |. \|ifhmode.|
|000026c0| 5c 73 70 61 63 65 66 61 | 63 74 6f 72 5c 73 61 76 |\spacefa|ctor\sav|
|000026d0| 65 5f 73 70 61 63 65 5f | 66 61 63 74 6f 72 09 5c |e_space_|factor.\|
|000026e0| 66 69 0a 20 20 20 5c 66 | 69 0a 20 20 20 7d 0a 25 |fi. \f|i. }.%|
|000026f0| 25 25 20 5c 65 6e 64 70 | 72 6f 67 0a 0a 0a 25 25 |%% \endp|rog...%%|
|00002700| 25 20 5c 73 65 63 74 20 | 54 68 65 20 75 73 61 67 |% \sect |The usag|
|00002710| 65 20 6f 66 20 74 68 65 | 20 6f 75 74 70 75 74 20 |e of the| output |
|00002720| 72 6f 75 74 69 6e 65 20 | 61 73 20 61 6e 20 69 6e |routine |as an in|
|00002730| 66 6f 72 6d 61 74 69 6f | 6e 20 70 61 73 73 69 6e |formatio|n passin|
|00002740| 67 20 73 79 73 74 65 6d | 0a 25 25 25 20 68 61 73 |g system|.%%% has|
|00002750| 20 61 6c 77 61 79 73 20 | 69 74 27 73 20 64 69 66 | always |it's dif|
|00002760| 66 69 63 75 6c 74 69 65 | 73 2e 20 20 4f 6e 65 20 |ficultie|s. One |
|00002770| 6f 66 20 74 68 65 20 72 | 65 61 6c 20 68 61 72 64 |of the r|eal hard|
|00002780| 20 70 61 72 74 73 20 69 | 73 20 74 68 65 0a 25 25 | parts i|s the.%%|
|00002790| 25 20 68 61 6e 64 6c 69 | 6e 67 20 6f 66 20 74 68 |% handli|ng of th|
|000027a0| 65 20 70 61 67 65 20 6d | 61 72 6b 73 2c 20 73 70 |e page m|arks, sp|
|000027b0| 65 63 69 61 6c 20 74 6f | 6b 65 6e 20 6c 69 73 74 |ecial to|ken list|
|000027c0| 73 20 74 68 61 74 20 61 | 72 65 20 68 61 6e 64 6c |s that a|re handl|
|000027d0| 65 64 20 62 79 0a 25 25 | 25 20 5c 54 65 58 7b 7d |ed by.%%|% \TeX{}|
|000027e0| 2e 20 54 68 65 73 65 20 | 74 6f 6b 65 6e 20 6c 69 |. These |token li|
|000027f0| 73 74 73 20 70 72 6f 76 | 69 64 65 20 69 6e 66 6f |sts prov|ide info|
|00002800| 72 6d 61 74 69 6f 6e 73 | 20 61 62 6f 75 74 20 74 |rmations| about t|
|00002810| 65 78 74 20 6f 6e 20 61 | 20 70 61 67 65 2c 0a 25 |ext on a| page,.%|
|00002820| 25 25 20 74 68 65 79 20 | 61 72 65 20 75 73 75 61 |%% they |are usua|
|00002830| 6c 6c 79 20 75 73 65 64 | 20 74 6f 20 63 72 65 61 |lly used| to crea|
|00002840| 74 65 20 68 65 61 64 20 | 6c 69 6e 65 73 20 65 74 |te head |lines et|
|00002850| 63 2e 20 20 54 68 65 20 | 75 73 65 72 20 6d 61 79 |c. The |user may|
|00002860| 20 61 63 63 65 73 73 0a | 25 25 25 20 74 68 65 73 | access.|%%% thes|
|00002870| 65 20 74 6f 6b 65 6e 20 | 6c 69 73 74 73 20 77 69 |e token |lists wi|
|00002880| 74 68 20 74 68 72 65 65 | 20 63 6f 6e 74 72 6f 6c |th three| control|
|00002890| 20 73 65 71 75 65 6e 63 | 65 73 3a 20 20 7c 5c 62 | sequenc|es: |\b|
|000028a0| 6f 74 6d 61 72 6b 7c 20 | 69 73 20 74 68 65 0a 25 |otmark| |is the.%|
|000028b0| 25 25 20 6c 61 73 74 20 | 70 61 67 65 20 6d 61 72 |%% last |page mar|
|000028c0| 6b 20 67 69 76 65 6e 2c | 20 7c 5c 74 6f 70 6d 61 |k given,| |\topma|
|000028d0| 72 6b 7c 20 69 73 20 74 | 68 65 20 7c 5c 62 6f 74 |rk| is t|he |\bot|
|000028e0| 6d 61 72 6b 7c 20 6f 66 | 20 74 68 65 20 70 72 65 |mark| of| the pre|
|000028f0| 76 69 6f 75 73 0a 25 25 | 25 20 70 61 67 65 2c 20 |vious.%%|% page, |
|00002900| 61 6e 64 20 7c 5c 66 69 | 72 73 74 6d 61 72 6b 7c |and |\fi|rstmark||
|00002910| 20 69 73 20 74 68 65 20 | 66 69 72 73 74 20 70 61 | is the |first pa|
|00002920| 67 65 20 6d 61 72 6b 20 | 6f 6e 20 74 68 65 20 61 |ge mark |on the a|
|00002930| 63 74 75 61 6c 20 70 61 | 67 65 20 6f 72 0a 25 25 |ctual pa|ge or.%%|
|00002940| 25 20 7c 5c 74 6f 70 6d | 61 72 6b 7c 20 69 66 20 |% |\topm|ark| if |
|00002950| 6e 6f 6e 65 20 77 61 73 | 20 67 69 76 65 6e 2e 20 |none was| given. |
|00002960| 20 48 65 72 65 20 60 60 | 70 61 67 65 27 27 20 69 | Here ``|page'' i|
|00002970| 73 20 75 73 65 64 20 69 | 6e 20 74 68 65 20 5c 54 |s used i|n the \T|
|00002980| 65 58 7b 7d 0a 25 25 25 | 20 73 65 6e 73 65 2c 20 |eX{}.%%%| sense, |
|00002990| 69 2e 65 2e 5c 20 61 73 | 20 74 68 65 20 6d 61 74 |i.e.\ as| the mat|
|000029a0| 65 72 69 61 6c 20 77 68 | 69 63 68 20 68 61 73 20 |erial wh|ich has |
|000029b0| 62 65 65 6e 20 63 6f 6c | 6c 65 63 74 65 64 20 62 |been col|lected b|
|000029c0| 65 74 77 65 65 6e 20 74 | 77 6f 0a 25 25 25 20 7c |etween t|wo.%%% ||
|000029d0| 5c 6f 75 74 70 75 74 7c | 20 69 6e 76 6f 63 61 74 |\output|| invocat|
|000029e0| 69 6f 6e 73 2e 09 4f 66 | 20 63 6f 75 72 73 65 2c |ions..Of| course,|
|000029f0| 20 74 68 65 20 70 61 67 | 65 20 6d 61 72 6b 73 20 | the pag|e marks |
|00002a00| 6d 75 73 74 20 6e 6f 74 | 20 62 65 0a 25 25 25 20 |must not| be.%%% |
|00002a10| 64 65 73 74 72 6f 79 65 | 64 2d 2d 2d 61 6e 64 20 |destroye|d---and |
|00002a20| 74 68 61 74 20 6d 65 61 | 6e 73 20 74 68 65 79 20 |that mea|ns they |
|00002a30| 6d 75 73 74 20 62 65 20 | 72 65 69 6e 73 65 72 74 |must be |reinsert|
|00002a40| 65 64 20 61 66 74 65 72 | 20 65 61 63 68 0a 25 25 |ed after| each.%%|
|00002a50| 25 20 73 70 65 63 69 61 | 6c 20 75 73 65 20 6f 66 |% specia|l use of|
|00002a60| 20 74 68 65 20 6f 75 74 | 70 75 74 20 72 6f 75 74 | the out|put rout|
|00002a70| 69 6e 65 2e 0a 0a 25 25 | 25 20 42 75 74 20 77 65 |ine...%%|% But we|
|00002a80| 20 68 61 76 65 20 6c 75 | 63 6b 3a 20 41 20 60 60 | have lu|ck: A ``|
|00002a90| 73 70 65 63 69 61 6c 20 | 75 73 65 27 27 20 63 6f |special |use'' co|
|00002aa0| 6e 73 69 73 74 73 20 6f | 66 20 74 77 6f 20 7c 5c |nsists o|f two |\|
|00002ab0| 6f 75 74 70 75 74 7c 0a | 25 25 25 20 69 6e 76 6f |output|.|%%% invo|
|00002ac0| 63 61 74 69 6f 6e 73 2c | 20 73 6f 20 77 65 20 63 |cations,| so we c|
|00002ad0| 61 6e 20 69 6e 73 65 72 | 74 20 7c 5c 74 6f 70 6d |an inser|t |\topm|
|00002ae0| 61 72 6b 7c 20 61 67 61 | 69 6e 20 61 73 20 61 20 |ark| aga|in as a |
|00002af0| 70 61 67 65 20 6d 61 72 | 6b 20 61 66 74 65 72 0a |page mar|k after.|
|00002b00| 25 25 25 20 74 68 65 20 | 66 69 72 73 74 20 69 6e |%%% the |first in|
|00002b10| 76 6f 63 61 74 69 6f 6e | 20 77 68 65 72 65 20 69 |vocation| where i|
|00002b20| 74 20 77 69 6c 6c 20 62 | 65 20 74 68 65 20 6f 6e |t will b|e the on|
|00002b30| 6c 79 20 70 61 67 65 20 | 6d 61 72 6b 20 6f 6e 20 |ly page |mark on |
|00002b40| 74 68 61 74 0a 25 25 25 | 20 5c 54 65 58 7b 7d 20 |that.%%%| \TeX{} |
|00002b50| 70 61 67 65 2e 20 20 54 | 68 65 20 73 65 63 6f 6e |page. T|he secon|
|00002b60| 64 20 69 6e 76 6f 63 61 | 74 69 6f 6e 20 77 69 6c |d invoca|tion wil|
|00002b70| 6c 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |l automa|tically |
|00002b80| 74 72 61 6e 73 66 6f 72 | 6d 20 74 68 69 73 0a 25 |transfor|m this.%|
|00002b90| 25 25 20 70 61 67 65 20 | 6d 61 72 6b 20 69 6e 74 |%% page |mark int|
|00002ba0| 6f 20 74 68 65 20 60 60 | 6c 61 73 74 20 70 61 67 |o the ``|last pag|
|00002bb0| 65 20 6d 61 72 6b 20 6f | 6e 20 74 68 65 20 70 72 |e mark o|n the pr|
|00002bc0| 65 76 69 6f 75 73 20 70 | 61 67 65 2c 27 27 20 69 |evious p|age,'' i|
|00002bd0| 2e 65 2e 5c 20 69 6e 0a | 25 25 25 20 7c 5c 74 6f |.e.\ in.|%%% |\to|
|00002be0| 70 6d 61 72 6b 7c 2d 2d | 2d 74 68 61 74 27 73 20 |pmark|--|-that's |
|00002bf0| 77 68 61 74 20 77 65 20 | 6e 65 65 64 21 20 20 46 |what we |need! F|
|00002c00| 75 72 74 68 65 72 6d 6f | 72 65 20 7c 5c 66 69 72 |urthermo|re |\fir|
|00002c10| 73 74 6d 61 72 6b 7c 20 | 61 6e 64 0a 25 25 25 20 |stmark| |and.%%% |
|00002c20| 7c 5c 62 6f 74 6d 61 72 | 6b 7c 20 61 72 65 20 73 ||\botmar|k| are s|
|00002c30| 61 76 65 64 20 69 6e 20 | 63 6f 6e 74 72 6f 6c 20 |aved in |control |
|00002c40| 73 65 71 75 65 6e 63 65 | 73 20 64 75 72 69 6e 67 |sequence|s during|
|00002c50| 20 74 68 65 20 66 69 72 | 73 74 20 69 6e 76 6f 63 | the fir|st invoc|
|00002c60| 61 74 69 6f 6e 2c 0a 25 | 25 25 20 74 68 65 79 20 |ation,.%|%% they |
|00002c70| 77 69 6c 6c 20 62 65 20 | 69 6e 73 65 72 74 65 64 |will be |inserted|
|00002c80| 20 61 67 61 69 6e 2c 20 | 74 6f 6f 2e 0a 0a 25 25 | again, |too...%%|
|00002c90| 25 20 54 68 65 72 65 27 | 73 20 6f 6e 65 20 73 69 |% There'|s one si|
|00002ca0| 74 75 61 74 69 6f 6e 20 | 77 68 65 72 65 20 74 68 |tuation |where th|
|00002cb0| 69 73 20 61 70 70 72 6f | 61 63 68 20 64 6f 65 73 |is appro|ach does|
|00002cc0| 6e 27 74 20 77 6f 72 6b | 3a 20 49 6e 20 66 72 6f |n't work|: In fro|
|00002cd0| 6e 74 20 6f 66 0a 25 25 | 25 20 74 68 65 20 66 69 |nt of.%%|% the fi|
|00002ce0| 72 73 74 20 70 61 67 65 | 20 6d 61 72 6b 20 7c 5c |rst page| mark |\|
|00002cf0| 74 6f 70 6d 61 72 6b 7c | 2c 20 7c 5c 66 69 72 73 |topmark||, |\firs|
|00002d00| 74 6d 61 72 6b 7c 2c 20 | 61 6e 64 20 7c 5c 62 6f |tmark|, |and |\bo|
|00002d10| 74 6d 61 72 6b 7c 20 65 | 78 70 61 6e 64 0a 25 25 |tmark| e|xpand.%%|
|00002d20| 25 20 74 6f 20 61 6e 20 | 65 6d 70 74 79 20 74 6f |% to an |empty to|
|00002d30| 6b 65 6e 20 6c 69 73 74 | 2e 20 49 66 20 77 65 20 |ken list|. If we |
|00002d40| 73 61 76 65 20 74 68 65 | 6d 20 74 68 65 6e 20 61 |save the|m then a|
|00002d50| 6e 64 20 69 6e 73 65 72 | 74 20 74 68 65 69 72 20 |nd inser|t their |
|00002d60| 6f 6c 64 0a 25 25 25 20 | 76 61 6c 75 65 73 20 77 |old.%%% |values w|
|00002d70| 65 20 68 61 76 65 20 69 | 6e 73 65 72 74 65 64 20 |e have i|nserted |
|00002d80| 65 6d 70 74 79 20 70 61 | 67 65 20 6d 61 72 6b 73 |empty pa|ge marks|
|00002d90| 2e 20 49 66 20 6f 74 68 | 65 72 20 70 61 67 65 20 |. If oth|er page |
|00002da0| 6d 61 72 6b 73 20 66 6f | 6c 6c 6f 77 0a 25 25 25 |marks fo|llow.%%%|
|00002db0| 20 6f 6e 20 74 68 65 20 | 73 61 6d 65 20 60 60 72 | on the |same ``r|
|00002dc0| 65 61 6c 27 27 20 70 61 | 67 65 20 7c 5c 66 69 72 |eal'' pa|ge |\fir|
|00002dd0| 73 74 6d 61 72 6b 7c 20 | 77 69 6c 6c 20 62 65 20 |stmark| |will be |
|00002de0| 65 6d 70 74 79 20 69 6e | 73 74 65 61 64 20 6f 66 |empty in|stead of|
|00002df0| 0a 25 25 25 20 65 78 70 | 61 6e 64 69 6e 67 20 74 |.%%% exp|anding t|
|00002e00| 6f 20 74 68 65 20 74 6f | 6b 65 6e 20 6c 69 73 74 |o the to|ken list|
|00002e10| 20 6f 66 20 74 68 65 20 | 66 69 72 73 74 20 70 61 | of the |first pa|
|00002e20| 67 65 20 6d 61 72 6b 2e | 20 20 54 6f 20 70 72 65 |ge mark.| To pre|
|00002e30| 76 65 6e 74 20 74 68 69 | 73 0a 25 25 25 20 77 65 |vent thi|s.%%% we|
|00002e40| 20 6d 75 73 74 20 6e 6f | 74 20 73 61 76 65 20 61 | must no|t save a|
|00002e50| 6e 64 20 72 65 73 74 6f | 72 65 20 70 61 67 65 20 |nd resto|re page |
|00002e60| 6d 61 72 6b 73 20 62 65 | 66 6f 72 65 20 74 68 65 |marks be|fore the|
|00002e70| 20 66 69 72 73 74 20 7c | 5c 6d 61 72 6b 7c 20 68 | first ||\mark| h|
|00002e80| 61 73 0a 25 25 25 20 62 | 65 65 6e 20 61 64 64 65 |as.%%% b|een adde|
|00002e90| 64 20 74 6f 20 74 68 65 | 20 6d 61 69 6e 20 76 65 |d to the| main ve|
|00002ea0| 72 74 69 63 61 6c 20 6c | 69 73 74 2e 0a 0a 25 25 |rtical l|ist...%%|
|00002eb0| 25 20 57 65 6c 6c 2c 20 | 74 68 61 74 20 63 61 6e |% Well, |that can|
|00002ec0| 20 62 65 20 63 6f 6e 74 | 72 6f 6c 6c 65 64 20 77 | be cont|rolled w|
|00002ed0| 69 74 68 20 61 20 73 77 | 69 74 63 68 2d 2d 2d 62 |ith a sw|itch---b|
|00002ee0| 75 74 20 74 68 69 73 20 | 73 77 69 74 63 68 20 6d |ut this |switch m|
|00002ef0| 75 73 74 20 62 65 0a 25 | 25 25 20 73 65 74 20 76 |ust be.%|%% set v|
|00002f00| 65 72 79 20 63 61 72 65 | 66 75 6c 6c 79 2e 20 20 |ery care|fully. |
|00002f10| 49 66 20 69 74 20 69 73 | 20 73 65 74 20 69 6d 6d |If it is| set imm|
|00002f20| 65 64 69 61 74 65 6c 79 | 20 62 79 20 74 68 65 20 |ediately| by the |
|00002f30| 66 69 72 73 74 20 7c 5c | 6d 61 72 6b 7c 0a 25 25 |first |\|mark|.%%|
|00002f40| 25 20 74 68 69 73 20 6d | 61 79 20 62 65 20 69 6e |% this m|ay be in|
|00002f50| 20 68 6f 72 69 7a 6f 6e | 74 61 6c 20 6d 6f 64 65 | horizon|tal mode|
|00002f60| 20 61 6e 64 20 73 70 65 | 63 69 61 6c 20 6f 75 74 | and spe|cial out|
|00002f70| 70 75 74 20 69 6e 76 6f | 63 61 74 69 6f 6e 73 20 |put invo|cations |
|00002f80| 63 61 6e 0a 25 25 25 20 | 6f 63 63 75 72 20 61 62 |can.%%% |occur ab|
|00002f90| 6f 76 65 20 74 68 69 73 | 20 70 61 67 65 20 6d 61 |ove this| page ma|
|00002fa0| 72 6b 20 28 69 2e 65 2e | 2c 20 74 68 65 72 65 20 |rk (i.e.|, there |
|00002fb0| 6d 61 79 20 62 65 20 61 | 20 7c 5c 62 65 67 69 6e |may be a| |\begin|
|00002fc0| 63 68 61 6e 67 65 7c 20 | 69 6e 20 74 68 65 0a 25 |change| |in the.%|
|00002fd0| 25 25 20 73 61 6d 65 20 | 70 61 72 61 67 72 61 70 |%% same |paragrap|
|00002fe0| 68 20 69 6e 20 66 72 6f | 6e 74 20 6f 66 20 74 68 |h in fro|nt of th|
|00002ff0| 65 20 7c 5c 6d 61 72 6b | 7c 29 2e 20 20 54 68 65 |e |\mark||). The|
|00003000| 72 65 66 6f 72 65 20 74 | 68 65 20 73 65 74 74 69 |refore t|he setti|
|00003010| 6e 67 20 6f 66 20 74 68 | 65 0a 25 25 25 20 73 77 |ng of th|e.%%% sw|
|00003020| 69 74 63 68 20 6d 75 73 | 74 20 62 65 20 64 65 6c |itch mus|t be del|
|00003030| 61 79 65 64 20 75 6e 74 | 69 6c 20 74 68 65 20 76 |ayed unt|il the v|
|00003040| 65 72 74 69 63 61 6c 20 | 70 6f 73 69 74 69 6f 6e |ertical |position|
|00003050| 20 6f 66 20 74 68 65 20 | 7c 5c 6d 61 72 6b 7c 0a | of the ||\mark|.|
|00003060| 25 25 25 20 28 70 72 65 | 63 69 73 65 6c 79 3a 20 |%%% (pre|cisely: |
|00003070| 20 74 68 65 20 70 6f 73 | 69 74 69 6f 6e 20 6f 66 | the pos|ition of|
|00003080| 20 74 68 65 20 7c 5c 6d | 61 72 6b 7c 20 69 6e 20 | the |\m|ark| in |
|00003090| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6c 69 73 74 |the curr|ent list|
|000030a0| 29 20 69 73 0a 25 25 25 | 20 72 65 61 63 68 65 64 |) is.%%%| reached|
|000030b0| 2e 20 20 49 6e 20 68 6f | 72 69 7a 6f 6e 74 61 6c |. In ho|rizontal|
|000030c0| 20 6d 6f 64 65 20 74 68 | 69 73 20 63 61 6e 20 62 | mode th|is can b|
|000030d0| 65 20 64 6f 6e 65 20 77 | 69 74 68 20 61 20 7c 5c |e done w|ith a |\|
|000030e0| 76 61 64 6a 75 73 74 7c | 20 61 6e 64 0a 25 25 25 |vadjust|| and.%%%|
|000030f0| 20 74 68 65 20 6f 75 74 | 70 75 74 20 72 6f 75 74 | the out|put rout|
|00003100| 69 6e 65 21 20 56 6f 69 | 6c 5c 60 61 2c 20 74 68 |ine! Voi|l\`a, th|
|00003110| 69 73 20 69 73 20 61 6e | 6f 74 68 65 72 20 63 6f |is is an|other co|
|00003120| 6d 6d 61 6e 64 20 67 72 | 6f 75 70 20 66 6f 72 20 |mmand gr|oup for |
|00003130| 74 68 65 0a 25 25 25 20 | 6f 75 74 70 75 74 20 72 |the.%%% |output r|
|00003140| 6f 75 74 69 6e 65 20 77 | 69 74 68 20 6f 6e 6c 79 |outine w|ith only|
|00003150| 20 6f 6e 65 20 63 6f 6d | 6d 61 6e 64 2e 0a 0a 25 | one com|mand...%|
|00003160| 25 25 20 5c 62 65 67 69 | 6e 70 72 6f 67 0a 5c 6e |%% \begi|nprog.\n|
|00003170| 65 77 69 66 5c 69 66 40 | 73 61 76 65 5f 6d 61 72 |ewif\if@|save_mar|
|00003180| 6b 40 20 20 5c 40 73 61 | 76 65 5f 6d 61 72 6b 40 |k@ \@sa|ve_mark@|
|00003190| 66 61 6c 73 65 0a 0a 5c | 64 65 66 5c 6d 61 72 6b |false..\|def\mark|
|000031a0| 5f 70 65 6e 61 6c 74 79 | 5f 67 72 6f 75 70 7b 2d |_penalty|_group{-|
|000031b0| 31 30 32 7d 0a 25 25 25 | 20 5c 65 6e 64 70 72 6f |102}.%%%| \endpro|
|000031c0| 67 0a 0a 0a 25 25 25 20 | 5c 73 65 63 74 20 57 65 |g...%%% |\sect We|
|000031d0| 20 77 69 6c 6c 20 72 65 | 64 65 66 69 6e 65 20 7c | will re|define ||
|000031e0| 5c 6d 61 72 6b 7c 20 73 | 6f 20 74 68 61 74 20 74 |\mark| s|o that t|
|000031f0| 68 65 20 66 69 72 73 74 | 20 70 61 67 65 20 6d 61 |he first| page ma|
|00003200| 72 6b 20 65 69 74 68 65 | 72 20 73 65 74 73 0a 25 |rk eithe|r sets.%|
|00003210| 25 25 20 74 68 65 20 73 | 77 69 74 63 68 20 74 6f |%% the s|witch to|
|00003220| 20 74 72 75 65 20 28 69 | 6e 20 76 65 72 74 69 63 | true (i|n vertic|
|00003230| 61 6c 20 6d 6f 64 65 20 | 61 6c 6c 20 70 6f 73 73 |al mode |all poss|
|00003240| 69 62 6c 65 20 73 70 65 | 63 69 61 6c 20 70 61 67 |ible spe|cial pag|
|00003250| 65 20 62 72 65 61 6b 73 | 0a 25 25 25 20 61 72 65 |e breaks|.%%% are|
|00003260| 20 61 6c 72 65 61 64 79 | 20 68 61 6e 64 6c 65 64 | already| handled|
|00003270| 29 20 6f 72 20 66 6f 72 | 63 65 73 20 74 68 65 20 |) or for|ces the |
|00003280| 7c 5c 6f 75 74 70 75 74 | 7c 20 72 6f 75 74 69 6e ||\output|| routin|
|00003290| 65 20 74 6f 20 64 6f 20 | 74 68 69 73 20 61 74 20 |e to do |this at |
|000032a0| 61 6e 0a 25 25 25 20 61 | 70 70 72 6f 70 72 69 61 |an.%%% a|ppropria|
|000032b0| 74 65 20 70 6c 61 63 65 | 2e 20 49 6e 20 74 68 65 |te place|. In the|
|000032c0| 20 6c 61 73 74 20 63 61 | 73 65 20 77 65 20 63 61 | last ca|se we ca|
|000032d0| 6e 20 75 73 65 20 7c 5c | 74 72 69 67 67 65 72 5f |n use |\|trigger_|
|000032e0| 6f 75 74 70 75 74 7c 0a | 25 25 25 20 61 67 61 69 |output|.|%%% agai|
|000032f0| 6e 2e 20 41 66 74 65 72 | 77 61 72 64 73 20 77 65 |n. After|wards we|
|00003300| 20 72 65 73 74 6f 72 65 | 20 74 68 65 20 6f 72 69 | restore| the ori|
|00003310| 67 69 6e 61 6c 20 6d 65 | 61 6e 69 6e 67 20 6f 66 |ginal me|aning of|
|00003320| 20 7c 5c 6d 61 72 6b 7c | 20 61 67 61 69 6e 20 74 | |\mark|| again t|
|00003330| 6f 0a 25 25 25 20 72 65 | 64 75 63 65 20 74 68 65 |o.%%% re|duce the|
|00003340| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 6f 76 65 72 | process|ing over|
|00003350| 68 65 61 64 20 28 61 6e | 64 20 74 68 65 20 64 65 |head (an|d the de|
|00003360| 61 64 20 63 79 63 6c 65 | 73 29 2e 0a 0a 25 25 25 |ad cycle|s)...%%%|
|00003370| 20 54 68 69 73 20 63 68 | 61 6e 67 65 20 6f 66 20 | This ch|ange of |
|00003380| 7c 5c 6d 61 72 6b 7c 20 | 68 61 73 20 74 68 65 20 ||\mark| |has the |
|00003390| 63 6f 6e 73 65 71 75 65 | 6e 63 65 20 74 68 61 74 |conseque|nce that|
|000033a0| 20 74 68 65 20 66 69 72 | 73 74 20 7c 5c 6d 61 72 | the fir|st |\mar|
|000033b0| 6b 7c 20 69 6e 20 61 0a | 25 25 25 20 64 6f 63 75 |k| in a.|%%% docu|
|000033c0| 6d 65 6e 74 20 63 61 6e | 6e 6f 74 20 62 65 20 75 |ment can|not be u|
|000033d0| 73 65 64 20 61 6e 79 6d | 6f 72 65 20 69 6e 20 68 |sed anym|ore in h|
|000033e0| 6f 72 69 7a 6f 6e 74 61 | 6c 20 6d 6f 64 65 20 69 |orizonta|l mode i|
|000033f0| 6e 73 69 64 65 20 61 20 | 76 65 72 74 69 63 61 6c |nside a |vertical|
|00003400| 0a 25 25 25 20 62 6f 78 | 20 74 68 61 74 20 73 68 |.%%% box| that sh|
|00003410| 61 6c 6c 20 62 65 20 73 | 70 6c 69 74 20 61 66 74 |all be s|plit aft|
|00003420| 65 72 77 61 72 64 73 2e | 20 20 42 75 74 20 74 68 |erwards.| But th|
|00003430| 69 73 20 69 73 20 6f 6e | 6c 79 20 73 65 6e 73 69 |is is on|ly sensi|
|00003440| 62 6c 65 20 69 66 20 74 | 68 69 73 0a 25 25 25 20 |ble if t|his.%%% |
|00003450| 6d 61 72 6b 20 73 68 61 | 6c 6c 20 62 65 20 75 73 |mark sha|ll be us|
|00003460| 65 64 20 61 73 20 7c 5c | 73 70 6c 69 74 66 69 72 |ed as |\|splitfir|
|00003470| 73 74 6d 61 72 6b 7c 20 | 62 65 63 61 75 73 65 20 |stmark| |because |
|00003480| 69 74 20 77 69 6c 6c 20 | 61 6c 6d 6f 73 74 20 6e |it will |almost n|
|00003490| 65 76 65 72 0a 25 25 25 | 20 6d 69 67 72 61 74 65 |ever.%%%| migrate|
|000034a0| 20 74 6f 20 74 68 65 20 | 6f 75 74 65 72 20 6c 69 | to the |outer li|
|000034b0| 73 74 2d 2d 2d 72 65 61 | 6c 6c 79 20 61 20 72 61 |st---rea|lly a ra|
|000034c0| 72 65 20 63 61 73 65 21 | 0a 0a 25 25 25 20 5c 62 |re case!|..%%% \b|
|000034d0| 65 67 69 6e 70 72 6f 67 | 0a 5c 6c 65 74 5c 40 40 |eginprog|.\let\@@|
|000034e0| 6d 61 72 6b 3d 5c 6d 61 | 72 6b 0a 5c 64 65 66 5c |mark=\ma|rk.\def\|
|000034f0| 6d 61 72 6b 7b 25 0a 20 | 20 20 5c 69 66 76 6d 6f |mark{%. | \ifvmo|
|00003500| 64 65 0a 20 20 20 20 20 | 20 5c 69 66 69 6e 6e 65 |de. | \ifinne|
|00003510| 72 20 5c 65 6c 73 65 20 | 20 5c 67 6c 6f 62 61 6c |r \else | \global|
|00003520| 5c 40 73 61 76 65 5f 6d | 61 72 6b 40 74 72 75 65 |\@save_m|ark@true|
|00003530| 20 5c 66 69 20 25 20 73 | 70 6c 69 74 20 6d 61 72 | \fi % s|plit mar|
|00003540| 6b 73 21 0a 20 20 20 5c | 65 6c 73 65 20 20 5c 62 |ks!. \|else \b|
|00003550| 72 65 61 6b 5f 70 65 6e | 61 6c 74 79 3d 5c 6d 61 |reak_pen|alty=\ma|
|00003560| 72 6b 5f 70 65 6e 61 6c | 74 79 5f 67 72 6f 75 70 |rk_penal|ty_group|
|00003570| 30 30 20 20 20 25 20 74 | 68 69 73 20 77 69 6c 6c |00 % t|his will|
|00003580| 20 63 6f 72 72 75 70 74 | 20 5c 76 73 70 6c 69 74 | corrupt| \vsplit|
|00003590| 0a 20 20 20 20 20 20 5c | 74 72 69 67 67 65 72 5f |. \|trigger_|
|000035a0| 6f 75 74 70 75 74 0a 20 | 20 20 5c 66 69 0a 20 20 |output. | \fi. |
|000035b0| 20 5c 67 6c 6f 62 61 6c | 5c 6c 65 74 5c 6d 61 72 | \global|\let\mar|
|000035c0| 6b 3d 5c 40 40 6d 61 72 | 6b 0a 20 20 20 5c 40 40 |k=\@@mar|k. \@@|
|000035d0| 6d 61 72 6b 0a 20 20 20 | 7d 0a 25 25 25 20 5c 65 |mark. |}.%%% \e|
|000035e0| 6e 64 70 72 6f 67 0a 0a | 0a 25 25 25 20 5c 73 65 |ndprog..|.%%% \se|
|000035f0| 63 74 20 0a 25 25 25 20 | 5c 62 65 67 69 6e 7b 73 |ct .%%% |\begin{s|
|00003600| 6c 6f 70 70 79 70 61 72 | 7d 0a 25 25 25 20 49 66 |loppypar|}.%%% If|
|00003610| 20 74 68 65 20 6f 75 74 | 70 75 74 20 72 6f 75 74 | the out|put rout|
|00003620| 69 6e 65 20 69 73 20 74 | 72 69 67 67 65 72 65 64 |ine is t|riggered|
|00003630| 20 77 69 74 68 20 74 68 | 65 20 6d 61 72 6b 20 70 | with th|e mark p|
|00003640| 65 6e 61 6c 74 79 20 76 | 61 6c 75 65 0a 25 25 25 |enalty v|alue.%%%|
|00003650| 20 69 74 20 77 69 6c 6c | 20 63 61 6c 6c 20 7c 5c | it will| call |\|
|00003660| 73 74 61 72 74 5f 73 61 | 76 69 6e 67 5f 70 61 67 |start_sa|ving_pag|
|00003670| 65 5f 6d 61 72 6b 73 7c | 2e 0a 25 25 25 20 5c 65 |e_marks||..%%% \e|
|00003680| 6e 64 7b 73 6c 6f 70 70 | 79 70 61 72 7d 0a 0a 25 |nd{slopp|ypar}..%|
|00003690| 25 25 20 5c 62 65 67 69 | 6e 70 72 6f 67 0a 5c 64 |%% \begi|nprog.\d|
|000036a0| 65 66 5c 73 74 61 72 74 | 5f 73 61 76 69 6e 67 5f |ef\start|_saving_|
|000036b0| 70 61 67 65 5f 6d 61 72 | 6b 73 7b 25 09 20 20 20 |page_mar|ks{%. |
|000036c0| 20 20 25 20 74 68 69 73 | 20 6d 61 79 20 62 65 20 | % this| may be |
|000036d0| 65 78 65 63 75 74 65 64 | 20 74 77 69 63 65 0a 20 |executed| twice. |
|000036e0| 20 20 5c 75 6e 76 62 6f | 78 32 35 35 0a 20 20 20 | \unvbo|x255. |
|000036f0| 5c 67 6c 6f 62 61 6c 5c | 40 73 61 76 65 5f 6d 61 |\global\|@save_ma|
|00003700| 72 6b 40 74 72 75 65 0a | 20 20 20 7d 0a 25 25 25 |rk@true.| }.%%%|
|00003710| 20 5c 65 6e 64 70 72 6f | 67 0a 0a 0a 25 25 25 20 | \endpro|g...%%% |
|00003720| 5c 73 65 63 74 20 54 6f | 20 66 69 6e 69 73 68 20 |\sect To| finish |
|00003730| 74 68 65 20 74 72 65 61 | 74 6d 65 6e 74 20 6f 66 |the trea|tment of|
|00003740| 20 70 61 67 65 20 6d 61 | 72 6b 73 20 77 65 20 63 | page ma|rks we c|
|00003750| 61 6e 20 66 6f 72 6d 75 | 6c 61 74 65 20 74 68 65 |an formu|late the|
|00003760| 20 74 77 6f 0a 25 25 25 | 20 6d 61 63 72 6f 73 20 | two.%%%| macros |
|00003770| 77 68 69 63 68 20 61 72 | 65 20 75 73 65 64 20 61 |which ar|e used a|
|00003780| 74 20 74 68 65 20 66 69 | 72 73 74 20 72 65 73 70 |t the fi|rst resp|
|00003790| 2e 5c 20 73 65 63 6f 6e | 64 20 69 6e 76 6f 63 61 |.\ secon|d invoca|
|000037a0| 74 69 6f 6e 20 6f 66 20 | 61 0a 25 25 25 20 60 60 |tion of |a.%%% ``|
|000037b0| 73 70 65 63 69 61 6c 20 | 6f 75 74 70 75 74 2c 27 |special |output,'|
|000037c0| 27 20 74 68 65 20 70 72 | 69 6e 63 69 70 6c 65 73 |' the pr|inciples|
|000037d0| 20 68 61 76 65 20 61 6c | 72 65 61 64 79 20 62 65 | have al|ready be|
|000037e0| 65 6e 20 65 78 70 6c 61 | 69 6e 65 64 2e 0a 0a 25 |en expla|ined...%|
|000037f0| 25 25 20 5c 62 65 67 69 | 6e 70 72 6f 67 0a 5c 64 |%% \begi|nprog.\d|
|00003800| 65 66 5c 62 61 63 6b 75 | 70 5f 70 61 67 65 5f 6d |ef\backu|p_page_m|
|00003810| 61 72 6b 73 7b 25 0a 20 | 20 20 5c 69 66 40 73 61 |arks{%. | \if@sa|
|00003820| 76 65 5f 6d 61 72 6b 40 | 0a 20 20 20 20 20 20 5c |ve_mark@|. \|
|00003830| 6d 61 72 6b 7b 5c 74 6f | 70 6d 61 72 6b 7d 25 0a |mark{\to|pmark}%.|
|00003840| 20 20 20 20 20 20 5c 78 | 64 65 66 5c 73 61 76 65 | \x|def\save|
|00003850| 5f 66 69 72 73 74 6d 61 | 72 6b 7b 5c 66 69 72 73 |_firstma|rk{\firs|
|00003860| 74 6d 61 72 6b 7d 25 0a | 20 20 20 20 20 20 5c 78 |tmark}%.| \x|
|00003870| 64 65 66 5c 73 61 76 65 | 5f 62 6f 74 6d 61 72 6b |def\save|_botmark|
|00003880| 7b 5c 62 6f 74 6d 61 72 | 6b 7d 25 0a 20 20 20 5c |{\botmar|k}%. \|
|00003890| 66 69 0a 20 20 20 7d 0a | 0a 5c 64 65 66 5c 72 65 |fi. }.|.\def\re|
|000038a0| 73 74 6f 72 65 5f 70 61 | 67 65 5f 6d 61 72 6b 73 |store_pa|ge_marks|
|000038b0| 7b 25 0a 20 20 20 5c 69 | 66 40 73 61 76 65 5f 6d |{%. \i|f@save_m|
|000038c0| 61 72 6b 40 0a 20 20 20 | 20 20 20 5c 6d 61 72 6b |ark@. | \mark|
|000038d0| 7b 5c 73 61 76 65 5f 66 | 69 72 73 74 6d 61 72 6b |{\save_f|irstmark|
|000038e0| 7d 5c 6d 61 72 6b 7b 5c | 73 61 76 65 5f 62 6f 74 |}\mark{\|save_bot|
|000038f0| 6d 61 72 6b 7d 25 0a 20 | 20 20 5c 66 69 0a 20 20 |mark}%. | \fi. |
|00003900| 20 7d 0a 25 25 25 20 5c | 65 6e 64 70 72 6f 67 0a | }.%%% \|endprog.|
|00003910| 0a 0a 0a 0a 0a 25 25 25 | 20 5c 63 68 61 70 20 50 |.....%%%| \chap P|
|00003920| 6f 73 69 74 69 6f 6e 69 | 6e 67 20 74 68 65 20 43 |ositioni|ng the C|
|00003930| 68 61 6e 67 65 20 4d 61 | 72 6b 73 2e 0a 0a 25 25 |hange Ma|rks...%%|
|00003940| 25 20 4e 6f 77 20 77 65 | 20 6d 75 73 74 20 68 61 |% Now we| must ha|
|00003950| 6e 64 6c 65 20 74 68 65 | 20 70 6f 73 69 74 69 6f |ndle the| positio|
|00003960| 6e 73 20 6f 66 20 74 68 | 65 20 62 61 72 73 2e 20 |ns of th|e bars. |
|00003970| 20 7c 5c 63 68 61 6e 67 | 65 5f 70 6f 73 7c 20 77 | |\chang|e_pos| w|
|00003980| 69 6c 6c 20 68 6f 6c 64 | 0a 25 25 25 20 74 68 65 |ill hold|.%%% the|
|00003990| 20 70 6f 73 69 74 69 6f | 6e 20 6f 66 20 74 68 65 | positio|n of the|
|000039a0| 20 61 63 74 75 61 6c 20 | 6d 61 72 6b 2c 20 69 2e | actual |mark, i.|
|000039b0| 65 2e 5c 20 74 68 65 20 | 64 69 73 74 61 6e 63 65 |e.\ the |distance|
|000039c0| 20 62 65 74 77 65 65 6e | 20 74 6f 70 20 6f 66 20 | between| top of |
|000039d0| 70 61 67 65 0a 25 25 25 | 20 61 6e 64 20 61 63 74 |page.%%%| and act|
|000039e0| 75 61 6c 20 6d 61 72 6b | 2e 20 20 7c 5c 74 6f 70 |ual mark|. |\top|
|000039f0| 5f 63 68 61 6e 67 65 5f | 70 6f 73 7c 20 77 69 6c |_change_|pos| wil|
|00003a00| 6c 20 68 6f 6c 64 20 74 | 68 65 20 62 65 67 69 6e |l hold t|he begin|
|00003a10| 6e 69 6e 67 20 6f 66 20 | 61 20 63 68 61 6e 67 65 |ning of |a change|
|00003a20| 64 0a 25 25 25 20 61 72 | 65 61 3b 20 61 20 76 61 |d.%%% ar|ea; a va|
|00003a30| 6c 75 65 20 6f 66 20 7c | 5c 6d 61 78 64 69 6d 65 |lue of ||\maxdime|
|00003a40| 6e 7c 20 69 6e 64 69 63 | 61 74 65 73 20 74 68 61 |n| indic|ates tha|
|00003a50| 74 20 6e 6f 20 63 68 61 | 6e 67 65 20 69 73 20 69 |t no cha|nge is i|
|00003a60| 6e 20 65 66 66 65 63 74 | 2e 20 20 49 66 0a 25 25 |n effect|. If.%%|
|00003a70| 25 20 61 20 63 68 61 6e | 67 65 64 20 61 72 65 61 |% a chan|ged area|
|00003a80| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 64 2c 20 69 | is comp|leted, i|
|00003a90| 74 20 69 73 20 61 70 70 | 65 6e 64 65 64 20 74 6f |t is app|ended to|
|00003aa0| 20 74 68 65 20 6c 69 73 | 74 20 7c 5c 62 61 72 5f | the lis|t |\bar_|
|00003ab0| 6c 69 73 74 7c 20 61 73 | 0a 25 25 25 20 61 6e 20 |list| as|.%%% an |
|00003ac0| 65 6c 65 6d 65 6e 74 20 | 7c 5c 62 61 72 28 5c 74 |element ||\bar(\t|
|00003ad0| 6f 70 5f 63 68 61 6e 67 | 65 5f 70 6f 73 2c 5c 63 |op_chang|e_pos,\c|
|00003ae0| 68 61 6e 67 65 5f 70 6f | 73 29 7c 2e 20 20 54 68 |hange_po|s)|. Th|
|00003af0| 69 73 20 6c 69 73 74 20 | 63 6f 6e 74 61 69 6e 73 |is list |contains|
|00003b00| 20 61 6c 6c 0a 25 25 25 | 20 63 68 61 6e 67 65 64 | all.%%%| changed|
|00003b10| 20 61 72 65 61 73 20 77 | 69 74 68 69 6e 20 74 68 | areas w|ithin th|
|00003b20| 65 20 63 75 72 72 65 6e | 74 20 70 61 67 65 20 73 |e curren|t page s|
|00003b30| 6f 20 74 68 61 74 20 62 | 61 72 73 20 63 61 6e 20 |o that b|ars can |
|00003b40| 62 65 20 77 72 69 74 74 | 65 6e 20 6c 61 74 65 72 |be writt|en later|
|00003b50| 0a 25 25 25 20 6f 6e 2e | 20 20 41 20 73 69 6e 67 |.%%% on.| A sing|
|00003b60| 6c 65 20 62 61 72 20 77 | 69 6c 6c 20 62 65 20 70 |le bar w|ill be p|
|00003b70| 72 6f 64 75 63 65 64 20 | 62 79 20 7c 5c 77 72 69 |roduced |by |\wri|
|00003b80| 74 65 5f 62 61 72 7c 2e | 0a 0a 25 25 25 20 5c 6e |te_bar|.|..%%% \n|
|00003b90| 6f 69 6e 64 65 6e 74 20 | 54 68 65 20 64 65 66 69 |oindent |The defi|
|00003ba0| 6e 69 74 69 6f 6e 20 6f | 66 20 7c 5c 62 61 72 7c |nition o|f |\bar||
|00003bb0| 20 74 6f 20 7c 5c 72 65 | 6c 61 78 7c 20 61 6c 6c | to |\re|lax| all|
|00003bc0| 6f 77 73 20 74 68 65 20 | 63 6f 6e 63 61 74 65 6e |ows the |concaten|
|00003bd0| 61 74 69 6f 6e 0a 25 25 | 25 20 6f 66 20 6e 65 77 |ation.%%|% of new|
|00003be0| 20 65 6c 65 6d 65 6e 74 | 73 20 74 6f 20 7c 5c 62 | element|s to |\b|
|00003bf0| 61 72 5f 6c 69 73 74 7c | 20 77 69 74 68 20 7c 5c |ar_list|| with |\|
|00003c00| 78 64 65 66 7c 2e 0a 0a | 25 25 25 20 5c 62 65 67 |xdef|...|%%% \beg|
|00003c10| 69 6e 70 72 6f 67 0a 5c | 6e 65 77 64 69 6d 65 6e |inprog.\|newdimen|
|00003c20| 5c 63 68 61 6e 67 65 5f | 70 6f 73 0a 5c 6e 65 77 |\change_|pos.\new|
|00003c30| 64 69 6d 65 6e 5c 74 6f | 70 5f 63 68 61 6e 67 65 |dimen\to|p_change|
|00003c40| 5f 70 6f 73 20 20 5c 74 | 6f 70 5f 63 68 61 6e 67 |_pos \t|op_chang|
|00003c50| 65 5f 70 6f 73 3d 5c 6d | 61 78 64 69 6d 65 6e 0a |e_pos=\m|axdimen.|
|00003c60| 0a 5c 6c 65 74 5c 62 61 | 72 5f 6c 69 73 74 3d 5c |.\let\ba|r_list=\|
|00003c70| 65 6d 70 74 79 0a 0a 5c | 6c 65 74 5c 62 61 72 3d |empty..\|let\bar=|
|00003c80| 5c 72 65 6c 61 78 0a 5c | 64 65 66 5c 77 72 69 74 |\relax.\|def\writ|
|00003c90| 65 5f 62 61 72 28 23 31 | 2c 23 32 29 7b 25 0a 20 |e_bar(#1|,#2){%. |
|00003ca0| 20 20 5c 73 65 74 62 6f | 78 30 3d 5c 68 62 6f 78 | \setbo|x0=\hbox|
|00003cb0| 7b 5c 76 72 75 6c 65 20 | 68 65 69 67 68 74 20 2d |{\vrule |height -|
|00003cc0| 23 31 20 20 64 65 70 74 | 68 20 23 32 7d 25 0a 20 |#1 dept|h #2}%. |
|00003cd0| 20 20 5c 64 70 30 3d 30 | 70 74 20 20 5c 68 74 30 | \dp0=0|pt \ht0|
|00003ce0| 3d 30 70 74 0a 20 20 20 | 5c 62 6f 78 30 0a 20 20 |=0pt. |\box0. |
|00003cf0| 20 7d 0a 25 25 25 20 5c | 65 6e 64 70 72 6f 67 0a | }.%%% \|endprog.|
|00003d00| 0a 0a 25 25 25 20 5c 73 | 65 63 74 20 49 66 20 74 |..%%% \s|ect If t|
|00003d10| 68 65 20 6f 75 74 70 75 | 74 20 72 6f 75 74 69 6e |he outpu|t routin|
|00003d20| 65 20 77 61 73 20 61 63 | 74 69 76 61 74 65 64 20 |e was ac|tivated |
|00003d30| 62 79 20 61 20 7c 5c 6f | 75 74 70 75 74 70 65 6e |by a |\o|utputpen|
|00003d40| 61 6c 74 79 7c 20 76 61 | 6c 75 65 0a 25 25 25 20 |alty| va|lue.%%% |
|00003d50| 77 69 74 68 69 6e 20 74 | 68 65 20 72 61 6e 67 65 |within t|he range|
|00003d60| 20 6f 66 20 6f 75 72 20 | 72 65 73 65 72 76 65 64 | of our |reserved|
|00003d70| 20 70 65 6e 61 6c 74 69 | 65 73 2c 20 74 68 65 20 | penalti|es, the |
|00003d80| 63 68 61 6e 67 65 20 68 | 61 6e 64 6c 69 6e 67 20 |change h|andling |
|00003d90| 77 69 6c 6c 0a 25 25 25 | 20 6f 63 63 75 72 2c 20 |will.%%%| occur, |
|00003da0| 6f 74 68 65 72 77 69 73 | 65 20 73 74 61 6e 64 61 |otherwis|e standa|
|00003db0| 72 64 20 70 6c 61 69 6e | 20 6f 75 74 70 75 74 20 |rd plain| output |
|00003dc0| 63 61 6e 20 62 65 20 64 | 6f 6e 65 2e 0a 0a 25 25 |can be d|one...%%|
|00003dd0| 25 20 5c 62 65 67 69 6e | 70 72 6f 67 0a 5c 6e 65 |% \begin|prog.\ne|
|00003de0| 77 63 6f 75 6e 74 5c 70 | 65 6e 61 6c 74 79 5f 67 |wcount\p|enalty_g|
|00003df0| 72 6f 75 70 0a 0a 5c 6f | 75 74 70 75 74 3d 7b 25 |roup..\o|utput={%|
|00003e00| 0a 20 20 20 5c 62 6f 78 | 6d 61 78 64 65 70 74 68 |. \box|maxdepth|
|00003e10| 3d 5c 6d 61 78 64 65 70 | 74 68 0a 20 20 20 5c 70 |=\maxdep|th. \p|
|00003e20| 65 6e 61 6c 74 79 5f 67 | 72 6f 75 70 3d 5c 6f 75 |enalty_g|roup=\ou|
|00003e30| 74 70 75 74 70 65 6e 61 | 6c 74 79 20 20 5c 64 69 |tputpena|lty \di|
|00003e40| 76 69 64 65 20 5c 70 65 | 6e 61 6c 74 79 5f 67 72 |vide \pe|nalty_gr|
|00003e50| 6f 75 70 20 62 79 20 31 | 30 30 0a 20 20 20 5c 69 |oup by 1|00. \i|
|00003e60| 66 6e 75 6d 20 5c 70 65 | 6e 61 6c 74 79 5f 67 72 |fnum \pe|nalty_gr|
|00003e70| 6f 75 70 3d 5c 63 68 61 | 6e 67 65 5f 70 65 6e 61 |oup=\cha|nge_pena|
|00003e80| 6c 74 79 5f 67 72 6f 75 | 70 5c 73 70 61 63 65 20 |lty_grou|p\space |
|00003e90| 20 5c 63 68 61 6e 67 65 | 5f 68 61 6e 64 6c 69 6e | \change|_handlin|
|00003ea0| 67 0a 20 20 20 5c 65 6c | 73 65 0a 20 20 20 20 20 |g. \el|se. |
|00003eb0| 20 5c 69 66 6e 75 6d 20 | 5c 70 65 6e 61 6c 74 79 | \ifnum |\penalty|
|00003ec0| 5f 67 72 6f 75 70 3d 5c | 6d 61 72 6b 5f 70 65 6e |_group=\|mark_pen|
|00003ed0| 61 6c 74 79 5f 67 72 6f | 75 70 5c 73 70 61 63 65 |alty_gro|up\space|
|00003ee0| 0a 09 20 5c 73 74 61 72 | 74 5f 73 61 76 69 6e 67 |.. \star|t_saving|
|00003ef0| 5f 70 61 67 65 5f 6d 61 | 72 6b 73 0a 20 20 20 20 |_page_ma|rks. |
|00003f00| 20 20 5c 65 6c 73 65 20 | 5c 70 6c 61 69 6e 6f 75 | \else |\plainou|
|00003f10| 74 70 75 74 0a 20 20 20 | 20 20 20 5c 66 69 0a 20 |tput. | \fi. |
|00003f20| 20 20 5c 66 69 0a 20 20 | 20 7d 0a 25 25 25 20 5c | \fi. | }.%%% \|
|00003f30| 65 6e 64 70 72 6f 67 0a | 0a 0a 25 25 25 20 5c 73 |endprog.|..%%% \s|
|00003f40| 65 63 74 20 41 73 20 65 | 78 70 6c 61 69 6e 65 64 |ect As e|xplained|
|00003f50| 20 62 65 66 6f 72 65 2c | 20 74 68 65 20 63 68 61 | before,| the cha|
|00003f60| 6e 67 65 20 68 61 6e 64 | 6c 69 6e 67 20 6d 75 73 |nge hand|ling mus|
|00003f70| 74 20 64 69 66 66 65 72 | 65 6e 74 69 61 74 65 0a |t differ|entiate.|
|00003f80| 25 25 25 20 62 65 74 77 | 65 65 6e 20 74 68 65 20 |%%% betw|een the |
|00003f90| 6b 69 6e 64 20 6f 66 20 | 74 68 65 20 63 68 61 6e |kind of |the chan|
|00003fa0| 67 65 20 63 6f 6d 6d 61 | 6e 64 20 28 62 65 67 69 |ge comma|nd (begi|
|00003fb0| 6e 6e 69 6e 67 20 69 73 | 20 69 6e 64 69 63 61 74 |nning is| indicat|
|00003fc0| 65 64 20 62 79 0a 25 25 | 25 20 24 7c 5c 63 68 61 |ed by.%%|% $|\cha|
|00003fd0| 6e 67 65 5f 63 6d 64 7c | 3d 30 24 2c 20 65 6e 64 |nge_cmd||=0$, end|
|00003fe0| 20 62 79 7e 31 29 20 61 | 6e 64 20 62 65 74 77 65 | by~1) a|nd betwe|
|00003ff0| 65 6e 20 74 68 65 20 6d | 6f 64 65 20 28 68 6f 72 |en the m|ode (hor|
|00004000| 69 7a 6f 6e 74 61 6c 20 | 69 6e 64 69 63 61 74 65 |izontal |indicate|
|00004010| 64 0a 25 25 25 20 62 79 | 20 61 6e 20 6f 64 64 20 |d.%%% by| an odd |
|00004020| 7c 5c 63 68 61 6e 67 65 | 5f 6d 6f 64 65 7c 20 76 ||\change|_mode| v|
|00004030| 61 6c 75 65 2c 20 76 65 | 72 74 69 63 61 6c 20 62 |alue, ve|rtical b|
|00004040| 79 20 61 6e 20 65 76 65 | 6e 29 2e 20 20 41 20 63 |y an eve|n). A c|
|00004050| 68 61 6e 67 65 20 6d 6f | 64 65 0a 25 25 25 20 68 |hange mo|de.%%% h|
|00004060| 69 67 68 65 72 20 74 68 | 61 6e 20 6f 6e 65 20 69 |igher th|an one i|
|00004070| 6e 64 69 63 61 74 65 73 | 20 74 68 61 74 20 77 65 |ndicates| that we|
|00004080| 20 61 72 65 20 64 6f 69 | 6e 67 20 74 68 65 20 66 | are doi|ng the f|
|00004090| 69 72 73 74 20 70 61 67 | 65 20 62 72 65 61 6b 20 |irst pag|e break |
|000040a0| 74 68 61 74 0a 25 25 25 | 20 68 61 73 20 74 6f 20 |that.%%%| has to |
|000040b0| 62 61 63 6b 75 70 20 74 | 68 65 20 70 61 67 65 20 |backup t|he page |
|000040c0| 61 73 20 66 61 72 20 61 | 73 20 69 74 20 65 78 69 |as far a|s it exi|
|000040d0| 73 74 73 20 61 6c 72 65 | 61 64 79 20 61 6e 64 20 |sts alre|ady and |
|000040e0| 72 65 73 75 6c 74 73 20 | 69 6e 20 61 6e 0a 25 25 |results |in an.%%|
|000040f0| 25 20 65 6d 70 74 79 20 | 63 75 72 72 65 6e 74 20 |% empty |current |
|00004100| 6c 69 73 74 20 6f 66 20 | 70 61 67 65 20 65 6c 65 |list of |page ele|
|00004110| 6d 65 6e 74 73 2e 0a 0a | 25 25 25 20 5c 62 65 67 |ments...|%%% \beg|
|00004120| 69 6e 70 72 6f 67 0a 5c | 6e 65 77 63 6f 75 6e 74 |inprog.\|newcount|
|00004130| 5c 63 68 61 6e 67 65 5f | 63 6d 64 0a 5c 6e 65 77 |\change_|cmd.\new|
|00004140| 63 6f 75 6e 74 5c 63 68 | 61 6e 67 65 5f 6d 6f 64 |count\ch|ange_mod|
|00004150| 65 0a 0a 5c 64 65 66 5c | 63 68 61 6e 67 65 5f 68 |e..\def\|change_h|
|00004160| 61 6e 64 6c 69 6e 67 7b | 25 0a 20 20 20 5c 63 68 |andling{|%. \ch|
|00004170| 61 6e 67 65 5f 63 6d 64 | 3d 2d 5c 6f 75 74 70 75 |ange_cmd|=-\outpu|
|00004180| 74 70 65 6e 61 6c 74 79 | 09 09 09 20 20 20 25 20 |tpenalty|... % |
|00004190| 3d 3d 3e 20 61 62 73 6f | 6c 75 74 65 20 76 61 6c |==> abso|lute val|
|000041a0| 75 65 0a 20 20 20 5c 61 | 64 76 61 6e 63 65 20 5c |ue. \a|dvance \|
|000041b0| 63 68 61 6e 67 65 5f 63 | 6d 64 20 62 79 20 5c 63 |change_c|md by \c|
|000041c0| 68 61 6e 67 65 5f 70 65 | 6e 61 6c 74 79 5f 67 72 |hange_pe|nalty_gr|
|000041d0| 6f 75 70 30 30 20 25 20 | 73 75 62 74 72 61 63 74 |oup00 % |subtract|
|000041e0| 69 6f 6e 0a 20 20 20 5c | 63 68 61 6e 67 65 5f 6d |ion. \|change_m|
|000041f0| 6f 64 65 3d 5c 63 68 61 | 6e 67 65 5f 63 6d 64 0a |ode=\cha|nge_cmd.|
|00004200| 20 20 20 5c 64 69 76 69 | 64 65 20 5c 63 68 61 6e | \divi|de \chan|
|00004210| 67 65 5f 63 6d 64 20 62 | 79 20 31 30 09 09 09 20 |ge_cmd b|y 10... |
|00004220| 20 20 25 20 73 65 63 6f | 6e 64 2d 74 6f 2d 6c 61 | % seco|nd-to-la|
|00004230| 73 74 20 64 69 67 69 74 | 0a 20 20 20 5c 61 64 76 |st digit|. \adv|
|00004240| 61 6e 63 65 20 5c 63 68 | 61 6e 67 65 5f 6d 6f 64 |ance \ch|ange_mod|
|00004250| 65 20 62 79 20 2d 5c 6e | 75 6d 62 65 72 5c 63 68 |e by -\n|umber\ch|
|00004260| 61 6e 67 65 5f 63 6d 64 | 30 20 20 20 25 20 6c 61 |ange_cmd|0 % la|
|00004270| 73 74 20 64 69 67 69 74 | 0a 20 20 20 5c 69 66 6e |st digit|. \ifn|
|00004280| 75 6d 20 5c 63 68 61 6e | 67 65 5f 6d 6f 64 65 3e |um \chan|ge_mode>|
|00004290| 31 20 20 5c 62 61 63 6b | 75 70 5f 70 61 67 65 0a |1 \back|up_page.|
|000042a0| 20 20 20 5c 65 6c 73 65 | 0a 20 20 20 20 20 20 5c | \else|. \|
|000042b0| 69 66 63 61 73 65 20 5c | 63 68 61 6e 67 65 5f 63 |ifcase \|change_c|
|000042c0| 6d 64 20 20 5c 62 65 67 | 69 6e 5f 63 68 61 6e 67 |md \beg|in_chang|
|000042d0| 65 0a 20 20 20 20 20 20 | 5c 6f 72 20 5c 65 6e 64 |e. |\or \end|
|000042e0| 5f 63 68 61 6e 67 65 0a | 20 20 20 20 20 20 5c 65 |_change.| \e|
|000042f0| 6c 73 65 20 5c 65 72 72 | 6d 65 73 73 61 67 65 7b |lse \err|message{|
|00004300| 49 6e 76 61 6c 69 64 20 | 63 68 61 6e 67 65 70 65 |Invalid |changepe|
|00004310| 6e 61 6c 74 79 7d 25 0a | 20 20 20 20 20 20 5c 66 |nalty}%.| \f|
|00004320| 69 0a 20 20 20 5c 66 69 | 0a 20 20 20 7d 0a 25 25 |i. \fi|. }.%%|
|00004330| 25 20 5c 65 6e 64 70 72 | 6f 67 0a 0a 0a 25 25 25 |% \endpr|og...%%%|
|00004340| 20 5c 73 65 63 74 20 50 | 72 6f 63 65 73 73 69 6e | \sect P|rocessin|
|00004350| 67 20 61 20 6d 61 72 6b | 20 64 75 72 69 6e 67 20 |g a mark| during |
|00004360| 74 68 65 20 73 65 63 6f | 6e 64 20 74 72 69 67 67 |the seco|nd trigg|
|00004370| 65 72 20 6f 66 20 74 68 | 65 20 6f 75 74 70 75 74 |er of th|e output|
|00004380| 20 72 6f 75 74 69 6e 65 | 0a 25 25 25 20 6d 65 61 | routine|.%%% mea|
|00004390| 6e 73 20 72 65 73 74 6f | 72 69 6e 67 20 74 68 65 |ns resto|ring the|
|000043a0| 20 70 61 67 65 20 61 6e | 64 20 73 74 6f 72 69 6e | page an|d storin|
|000043b0| 67 20 74 68 65 20 70 6f | 73 69 74 69 6f 6e 73 2e |g the po|sitions.|
|000043c0| 20 20 41 74 20 74 68 65 | 20 62 65 67 69 6e 6e 69 | At the| beginni|
|000043d0| 6e 67 2c 0a 25 25 25 20 | 74 68 65 20 62 65 67 69 |ng,.%%% |the begi|
|000043e0| 6e 20 6f 66 20 74 68 65 | 20 63 68 61 6e 67 65 20 |n of the| change |
|000043f0| 69 73 20 73 61 76 65 64 | 2c 20 61 74 20 74 68 65 |is saved|, at the|
|00004400| 20 65 6e 64 2c 20 77 65 | 20 6b 6e 6f 77 20 74 68 | end, we| know th|
|00004410| 65 20 62 61 72 20 61 6c | 72 65 61 64 79 0a 25 25 |e bar al|ready.%%|
|00004420| 25 20 61 6e 64 20 70 75 | 74 20 69 74 20 69 6e 74 |% and pu|t it int|
|00004430| 6f 20 74 68 65 20 62 61 | 72 20 6c 69 73 74 2e 20 |o the ba|r list. |
|00004440| 20 54 68 65 6e 20 74 68 | 65 20 70 6f 73 69 74 69 | Then th|e positi|
|00004450| 6f 6e 69 6e 67 20 76 61 | 6c 75 65 73 20 61 72 65 |oning va|lues are|
|00004460| 0a 25 25 25 20 72 65 69 | 6e 69 74 69 61 6c 69 7a |.%%% rei|nitializ|
|00004470| 65 64 2e 0a 0a 25 25 25 | 20 41 73 20 77 69 74 68 |ed...%%%| As with|
|00004480| 69 6e 20 65 76 65 72 79 | 20 6f 75 74 70 75 74 20 |in every| output |
|00004490| 69 6e 76 6f 63 61 74 69 | 6f 6e 2c 20 74 68 65 20 |invocati|on, the |
|000044a0| 62 6f 78 20 32 35 35 20 | 6d 75 73 74 20 62 65 20 |box 255 |must be |
|000044b0| 75 6e 62 6f 78 65 64 2e | 20 20 41 73 20 77 65 0a |unboxed.| As we.|
|000044c0| 25 25 25 20 61 72 65 20 | 68 65 72 65 20 69 6e 20 |%%% are |here in |
|000044d0| 74 68 65 20 73 65 63 6f | 6e 64 20 69 6e 76 6f 63 |the seco|nd invoc|
|000044e0| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 6f 75 74 |ation of| the out|
|000044f0| 70 75 74 20 72 6f 75 74 | 69 6e 65 20 74 68 65 20 |put rout|ine the |
|00004500| 7c 5c 62 6f 78 32 35 35 | 7c 0a 25 25 25 20 63 6f ||\box255||.%%% co|
|00004510| 6e 73 69 73 74 73 20 6f | 6e 6c 79 20 6f 66 20 74 |nsists o|nly of t|
|00004520| 68 65 20 65 6d 70 74 79 | 20 7c 5c 76 62 6f 78 7c |he empty| |\vbox||
|00004530| 20 77 65 20 68 61 76 65 | 20 69 6e 73 65 72 74 65 | we have| inserte|
|00004540| 64 20 69 6e 0a 25 25 25 | 20 7c 5c 74 72 69 67 67 |d in.%%%| |\trigg|
|00004550| 65 72 5f 6f 75 74 70 75 | 74 7c 2e 20 20 57 65 20 |er_outpu|t|. We |
|00004560| 63 61 6e 20 74 68 65 72 | 65 66 6f 72 65 20 74 68 |can ther|efore th|
|00004570| 72 6f 77 20 69 74 20 61 | 77 61 79 2e 0a 0a 25 25 |row it a|way...%%|
|00004580| 25 20 5c 62 65 67 69 6e | 70 72 6f 67 0a 5c 64 65 |% \begin|prog.\de|
|00004590| 66 5c 62 65 67 69 6e 5f | 63 68 61 6e 67 65 7b 25 |f\begin_|change{%|
|000045a0| 0a 20 20 20 5c 72 65 73 | 74 6f 72 65 5f 70 61 67 |. \res|tore_pag|
|000045b0| 65 0a 20 20 20 5c 73 65 | 74 62 6f 78 30 3d 5c 62 |e. \se|tbox0=\b|
|000045c0| 6f 78 32 35 35 0a 20 20 | 20 5c 69 66 64 69 6d 20 |ox255. | \ifdim |
|000045d0| 5c 74 6f 70 5f 63 68 61 | 6e 67 65 5f 70 6f 73 3d |\top_cha|nge_pos=|
|000045e0| 5c 6d 61 78 64 69 6d 65 | 6e 0a 20 20 20 20 20 20 |\maxdime|n. |
|000045f0| 5c 67 6c 6f 62 61 6c 5c | 74 6f 70 5f 63 68 61 6e |\global\|top_chan|
|00004600| 67 65 5f 70 6f 73 3d 5c | 63 68 61 6e 67 65 5f 70 |ge_pos=\|change_p|
|00004610| 6f 73 20 20 5c 67 6c 6f | 62 61 6c 5c 63 68 61 6e |os \glo|bal\chan|
|00004620| 67 65 5f 70 6f 73 3d 30 | 70 74 0a 20 20 20 5c 65 |ge_pos=0|pt. \e|
|00004630| 6c 73 65 20 5c 65 72 72 | 6d 65 73 73 61 67 65 7b |lse \err|message{|
|00004640| 4e 65 73 74 65 64 20 63 | 68 61 6e 67 65 20 62 61 |Nested c|hange ba|
|00004650| 72 73 20 61 72 65 20 6e | 6f 74 20 73 75 70 70 6f |rs are n|ot suppo|
|00004660| 72 74 65 64 7d 25 0a 20 | 20 20 5c 66 69 0a 20 20 |rted}%. | \fi. |
|00004670| 20 7d 0a 0a 5c 64 65 66 | 5c 65 6e 64 5f 63 68 61 | }..\def|\end_cha|
|00004680| 6e 67 65 7b 25 0a 20 20 | 20 5c 72 65 73 74 6f 72 |nge{%. | \restor|
|00004690| 65 5f 70 61 67 65 0a 20 | 20 20 5c 73 65 74 62 6f |e_page. | \setbo|
|000046a0| 78 30 3d 5c 62 6f 78 32 | 35 35 0a 20 20 20 5c 69 |x0=\box2|55. \i|
|000046b0| 66 64 69 6d 20 5c 74 6f | 70 5f 63 68 61 6e 67 65 |fdim \to|p_change|
|000046c0| 5f 70 6f 73 3d 5c 6d 61 | 78 64 69 6d 65 6e 0a 20 |_pos=\ma|xdimen. |
|000046d0| 20 20 20 20 20 5c 65 72 | 72 6d 65 73 73 61 67 65 | \er|rmessage|
|000046e0| 7b 4e 6f 20 63 68 61 6e | 67 65 20 69 73 20 69 6e |{No chan|ge is in|
|000046f0| 20 65 66 66 65 63 74 7d | 25 0a 20 20 20 5c 65 6c | effect}|%. \el|
|00004700| 73 65 0a 20 20 20 20 20 | 20 5c 78 64 65 66 5c 62 |se. | \xdef\b|
|00004710| 61 72 5f 6c 69 73 74 7b | 5c 62 61 72 5f 6c 69 73 |ar_list{|\bar_lis|
|00004720| 74 20 5c 62 61 72 28 5c | 74 68 65 5c 74 6f 70 5f |t \bar(\|the\top_|
|00004730| 63 68 61 6e 67 65 5f 70 | 6f 73 2c 5c 74 68 65 5c |change_p|os,\the\|
|00004740| 63 68 61 6e 67 65 5f 70 | 6f 73 29 7d 25 0a 20 20 |change_p|os)}%. |
|00004750| 20 20 20 20 5c 67 6c 6f | 62 61 6c 5c 74 6f 70 5f | \glo|bal\top_|
|00004760| 63 68 61 6e 67 65 5f 70 | 6f 73 3d 5c 6d 61 78 64 |change_p|os=\maxd|
|00004770| 69 6d 65 6e 09 5c 67 6c | 6f 62 61 6c 5c 63 68 61 |imen.\gl|obal\cha|
|00004780| 6e 67 65 5f 70 6f 73 3d | 30 70 74 0a 20 20 20 5c |nge_pos=|0pt. \|
|00004790| 66 69 0a 20 20 20 7d 0a | 25 25 25 20 5c 65 6e 64 |fi. }.|%%% \end|
|000047a0| 70 72 6f 67 0a 0a 0a 0a | 0a 25 25 25 20 5c 63 68 |prog....|.%%% \ch|
|000047b0| 61 70 20 48 61 6e 64 6c | 69 6e 67 20 74 68 65 20 |ap Handl|ing the |
|000047c0| 50 61 67 65 20 43 6f 6e | 74 65 6e 74 73 2e 0a 0a |Page Con|tents...|
|000047d0| 25 25 25 20 57 65 20 68 | 61 6e 64 6c 65 20 74 68 |%%% We h|andle th|
|000047e0| 65 20 70 61 72 74 20 6f | 66 20 74 68 65 20 70 61 |e part o|f the pa|
|000047f0| 67 65 20 74 68 61 74 20 | 77 61 73 20 63 6f 6c 6c |ge that |was coll|
|00004800| 65 63 74 65 64 20 75 70 | 20 74 6f 20 6e 6f 77 20 |ected up| to now |
|00004810| 62 79 20 70 75 74 74 69 | 6e 67 0a 25 25 25 20 69 |by putti|ng.%%% i|
|00004820| 74 20 69 6e 74 6f 20 61 | 20 62 6f 78 2e 09 54 68 |t into a| box..Th|
|00004830| 69 73 20 66 69 78 65 73 | 20 74 68 65 20 70 6f 73 |is fixes| the pos|
|00004840| 69 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 63 68 61 |ition of| the cha|
|00004850| 6e 67 65 20 6d 61 72 6b | 20 73 6f 20 74 68 61 74 |nge mark| so that|
|00004860| 0a 25 25 25 20 7c 5c 63 | 68 61 6e 67 65 5f 70 6f |.%%% |\c|hange_po|
|00004870| 73 7c 20 63 61 6e 20 62 | 65 20 73 65 74 20 61 6e |s| can b|e set an|
|00004880| 64 20 73 74 6f 72 65 64 | 20 6c 61 74 65 72 20 6f |d stored| later o|
|00004890| 6e 20 69 6e 20 7c 5c 74 | 6f 70 5f 63 68 61 6e 67 |n in |\t|op_chang|
|000048a0| 65 5f 70 6f 73 7c 20 6f | 72 20 61 73 0a 25 25 25 |e_pos| o|r as.%%%|
|000048b0| 20 74 68 65 20 6c 6f 77 | 65 72 20 65 6e 64 20 6f | the low|er end o|
|000048c0| 66 20 61 20 62 61 72 20 | 69 6e 20 7c 5c 62 61 72 |f a bar |in |\bar|
|000048d0| 5f 6c 69 73 74 7c 2e 0a | 0a 25 25 25 20 54 6f 20 |_list|..|.%%% To |
|000048e0| 73 61 76 65 20 74 68 65 | 20 70 61 67 65 20 63 6f |save the| page co|
|000048f0| 6e 74 65 6e 74 73 20 69 | 6e 20 74 68 65 20 66 69 |ntents i|n the fi|
|00004900| 72 73 74 20 6f 75 74 70 | 75 74 20 69 6e 76 6f 63 |rst outp|ut invoc|
|00004910| 61 74 69 6f 6e 2c 20 77 | 65 20 68 61 76 65 20 74 |ation, w|e have t|
|00004920| 6f 0a 25 25 25 20 73 61 | 76 65 20 74 68 65 20 70 |o.%%% sa|ve the p|
|00004930| 61 67 65 20 69 6e 20 7c | 5c 73 61 76 65 5f 70 61 |age in ||\save_pa|
|00004940| 67 65 7c 2e 09 42 65 66 | 6f 72 65 20 74 68 61 74 |ge|..Bef|ore that|
|00004950| 2c 20 77 65 20 73 74 6f | 72 65 20 74 68 65 20 73 |, we sto|re the s|
|00004960| 69 7a 65 20 6f 66 20 74 | 68 65 0a 25 25 25 20 62 |ize of t|he.%%% b|
|00004970| 6f 78 20 28 77 68 69 63 | 68 20 65 71 75 61 6c 73 |ox (whic|h equals|
|00004980| 20 7c 5c 70 61 67 65 67 | 6f 61 6c 7c 21 29 5c 20 | |\pageg|oal|!)\ |
|00004990| 69 6e 20 7c 5c 70 61 67 | 65 5f 67 6f 61 6c 7c 2e |in |\pag|e_goal|.|
|000049a0| 20 20 49 66 20 74 68 65 | 20 75 6e 62 6f 78 69 6e | If the| unboxin|
|000049b0| 67 0a 25 25 25 20 63 61 | 75 73 65 64 20 61 6e 20 |g.%%% ca|used an |
|000049c0| 69 6e 63 72 65 61 73 65 | 20 6f 66 20 68 65 69 67 |increase| of heig|
|000049d0| 68 74 20 28 69 2e 65 2e | 5c 20 69 66 20 24 7c 5c |ht (i.e.|\ if $|\|
|000049e0| 70 61 67 65 74 6f 74 61 | 6c 7c 3e 7c 5c 70 61 67 |pagetota|l|>|\pag|
|000049f0| 65 67 6f 61 6c 7c 24 29 | 2c 0a 25 25 25 20 77 65 |egoal|$)|,.%%% we|
|00004a00| 20 65 6a 65 63 74 20 74 | 68 65 20 70 61 67 65 20 | eject t|he page |
|00004a10| 75 70 20 74 6f 20 74 68 | 65 20 63 68 61 6e 67 65 |up to th|e change|
|00004a20| 20 6d 61 72 6b 2e 20 20 | 4e 6f 77 20 77 65 20 68 | mark. |Now we h|
|00004a30| 61 76 65 20 74 6f 20 63 | 6f 6d 70 75 74 65 20 74 |ave to c|ompute t|
|00004a40| 68 65 0a 25 25 25 20 63 | 75 72 72 65 6e 74 20 70 |he.%%% c|urrent p|
|00004a50| 6f 73 69 74 69 6f 6e 20 | 6f 66 20 6f 75 72 20 6d |osition |of our m|
|00004a60| 61 72 6b 20 69 6e 20 7c | 5c 63 68 61 6e 67 65 5f |ark in ||\change_|
|00004a70| 70 6f 73 7c 2e 09 49 74 | 20 69 73 20 66 69 78 65 |pos|..It| is fixe|
|00004a80| 64 20 62 79 20 74 68 65 | 20 73 69 7a 65 0a 25 25 |d by the| size.%%|
|00004a90| 25 20 6f 66 20 74 68 65 | 20 7c 5c 73 61 76 65 5f |% of the| |\save_|
|00004aa0| 70 61 67 65 7c 2c 20 62 | 75 74 20 69 6e 20 63 61 |page|, b|ut in ca|
|00004ab0| 73 65 20 6f 66 20 61 20 | 62 65 67 69 6e 20 6d 61 |se of a |begin ma|
|00004ac0| 72 6b 20 69 6e 20 68 6f | 72 69 7a 6f 6e 74 61 6c |rk in ho|rizontal|
|00004ad0| 20 6d 6f 64 65 20 77 65 | 0a 25 25 25 20 6d 75 73 | mode we|.%%% mus|
|00004ae0| 74 20 64 65 63 72 65 61 | 73 65 20 69 74 20 66 72 |t decrea|se it fr|
|00004af0| 6f 6d 20 74 68 65 20 62 | 61 73 65 6c 69 6e 65 20 |om the b|aseline |
|00004b00| 70 6f 73 69 74 69 6f 6e | 20 74 6f 20 74 68 65 20 |position| to the |
|00004b10| 74 6f 70 20 6f 66 20 74 | 68 65 20 6c 61 73 74 20 |top of t|he last |
|00004b20| 6c 69 6e 65 2e 0a 25 25 | 25 20 46 69 6e 61 6c 6c |line..%%|% Finall|
|00004b30| 79 2c 20 77 65 20 6d 75 | 73 74 20 73 61 76 65 20 |y, we mu|st save |
|00004b40| 74 68 65 20 76 61 6c 75 | 65 73 20 66 6f 72 20 74 |the valu|es for t|
|00004b50| 68 65 20 61 6c 6c 6f 77 | 65 64 20 69 6e 73 65 72 |he allow|ed inser|
|00004b60| 74 69 6f 6e 73 20 61 6e | 64 20 63 68 61 6e 67 65 |tions an|d change|
|00004b70| 0a 25 25 25 20 74 68 65 | 6d 20 74 6f 20 74 68 65 |.%%% the|m to the|
|00004b80| 20 6d 61 78 69 6d 61 6c | 20 76 61 6c 75 65 20 73 | maximal| value s|
|00004b90| 6f 20 74 68 61 74 20 61 | 20 72 65 73 74 20 74 68 |o that a| rest th|
|00004ba0| 61 74 20 69 73 20 73 70 | 6c 69 74 20 66 72 6f 6d |at is sp|lit from|
|00004bb0| 20 61 6e 20 69 6e 73 65 | 72 74 69 6f 6e 0a 25 25 | an inse|rtion.%%|
|00004bc0| 25 20 77 69 6c 6c 20 62 | 65 20 61 70 70 65 6e 64 |% will b|e append|
|00004bd0| 65 64 20 74 6f 20 74 68 | 65 20 69 6e 73 65 72 74 |ed to th|e insert|
|00004be0| 69 6f 6e 20 62 6f 78 20 | 61 74 20 74 68 65 20 73 |ion box |at the s|
|00004bf0| 65 63 6f 6e 64 20 69 6e | 76 6f 63 61 74 69 6f 6e |econd in|vocation|
|00004c00| 20 69 6e 20 65 76 65 72 | 79 0a 25 25 25 20 63 61 | in ever|y.%%% ca|
|00004c10| 73 65 2e 0a 0a 25 25 25 | 20 54 68 65 20 7c 5c 76 |se...%%%| The |\v|
|00004c20| 73 69 7a 65 7c 20 69 73 | 20 69 6e 69 74 69 61 6c |size| is| initial|
|00004c30| 69 7a 65 64 20 74 6f 20 | 7c 5c 6d 61 78 64 69 6d |ized to ||\maxdim|
|00004c40| 65 6e 7c 2e 20 20 54 68 | 69 73 20 61 6c 6c 6f 77 |en|. Th|is allow|
|00004c50| 73 20 74 6f 20 63 6f 6e | 74 72 6f 6c 0a 25 25 25 |s to con|trol.%%%|
|00004c60| 20 77 68 65 74 68 65 72 | 20 74 68 69 73 20 66 69 | whether| this fi|
|00004c70| 72 73 74 20 6f 75 74 70 | 75 74 20 69 6e 76 6f 63 |rst outp|ut invoc|
|00004c80| 61 74 69 6f 6e 20 6f 63 | 75 72 72 65 64 20 6f 72 |ation oc|urred or|
|00004c90| 20 69 66 20 69 74 20 77 | 61 73 20 64 69 73 63 61 | if it w|as disca|
|00004ca0| 72 64 65 64 2e 0a 25 25 | 25 20 46 6f 72 20 74 68 |rded..%%|% For th|
|00004cb0| 65 20 73 61 6d 65 20 72 | 65 61 73 6f 6e 20 7c 5c |e same r|eason |\|
|00004cc0| 63 68 61 6e 67 65 5f 70 | 6f 73 7c 20 69 73 20 69 |change_p|os| is i|
|00004cd0| 6e 69 74 69 61 6c 69 7a | 65 64 20 74 6f 7e 30 70 |nitializ|ed to~0p|
|00004ce0| 74 2e 0a 0a 25 25 25 20 | 5c 62 65 67 69 6e 70 72 |t...%%% |\beginpr|
|00004cf0| 6f 67 0a 5c 6e 65 77 62 | 6f 78 5c 73 61 76 65 5f |og.\newb|ox\save_|
|00004d00| 70 61 67 65 0a 0a 5c 6e | 65 77 64 69 6d 65 6e 5c |page..\n|ewdimen\|
|00004d10| 70 61 67 65 5f 67 6f 61 | 6c 0a 5c 6e 65 77 64 69 |page_goa|l.\newdi|
|00004d20| 6d 65 6e 5c 73 61 76 65 | 5f 76 73 69 7a 65 09 09 |men\save|_vsize..|
|00004d30| 5c 73 61 76 65 5f 76 73 | 69 7a 65 3d 5c 6d 61 78 |\save_vs|ize=\max|
|00004d40| 64 69 6d 65 6e 0a 5c 6e | 65 77 64 69 6d 65 6e 5c |dimen.\n|ewdimen\|
|00004d50| 73 61 76 65 5f 64 69 6d | 65 6e 5f 74 6f 70 69 6e |save_dim|en_topin|
|00004d60| 73 0a 5c 6e 65 77 64 69 | 6d 65 6e 5c 73 61 76 65 |s.\newdi|men\save|
|00004d70| 5f 64 69 6d 65 6e 5f 66 | 6f 6f 74 69 6e 73 0a 0a |_dimen_f|ootins..|
|00004d80| 5c 64 65 66 5c 62 61 63 | 6b 75 70 5f 70 61 67 65 |\def\bac|kup_page|
|00004d90| 7b 25 0a 20 20 20 5c 67 | 6c 6f 62 61 6c 5c 70 61 |{%. \g|lobal\pa|
|00004da0| 67 65 5f 67 6f 61 6c 3d | 5c 68 74 32 35 35 0a 20 |ge_goal=|\ht255. |
|00004db0| 20 20 5c 67 6c 6f 62 61 | 6c 5c 73 65 74 62 6f 78 | \globa|l\setbox|
|00004dc0| 5c 73 61 76 65 5f 70 61 | 67 65 3d 5c 76 62 6f 78 |\save_pa|ge=\vbox|
|00004dd0| 7b 5c 75 6e 76 62 6f 78 | 32 35 35 7d 25 0a 20 20 |{\unvbox|255}%. |
|00004de0| 20 5c 69 66 64 69 6d 20 | 5c 68 74 5c 73 61 76 65 | \ifdim |\ht\save|
|00004df0| 5f 70 61 67 65 3e 5c 70 | 61 67 65 5f 67 6f 61 6c |_page>\p|age_goal|
|00004e00| 20 20 5c 65 6a 65 63 74 | 5f 70 61 67 65 5f 73 6f | \eject|_page_so|
|00004e10| 5f 66 61 72 09 5c 66 69 | 0a 20 20 20 5c 63 68 61 |_far.\fi|. \cha|
|00004e20| 6e 67 65 5f 70 6f 73 3d | 5c 68 74 5c 73 61 76 65 |nge_pos=|\ht\save|
|00004e30| 5f 70 61 67 65 20 20 5c | 67 6c 6f 62 61 6c 5c 61 |_page \|global\a|
|00004e40| 64 76 61 6e 63 65 20 5c | 63 68 61 6e 67 65 5f 70 |dvance \|change_p|
|00004e50| 6f 73 20 62 79 20 5c 64 | 70 5c 73 61 76 65 5f 70 |os by \d|p\save_p|
|00004e60| 61 67 65 0a 20 20 20 5c | 69 66 6e 75 6d 20 5c 63 |age. \|ifnum \c|
|00004e70| 68 61 6e 67 65 5f 63 6d | 64 3d 5c 63 68 61 6e 67 |hange_cm|d=\chang|
|00004e80| 65 5f 70 65 6e 61 6c 74 | 79 5f 62 65 67 69 6e 5c |e_penalt|y_begin\|
|00004e90| 73 70 61 63 65 0a 20 20 | 20 20 20 20 5c 69 66 6f |space. | \ifo|
|00004ea0| 64 64 20 5c 63 68 61 6e | 67 65 5f 6d 6f 64 65 20 |dd \chan|ge_mode |
|00004eb0| 20 5c 68 69 67 68 65 72 | 5f 63 68 61 6e 67 65 5f | \higher|_change_|
|00004ec0| 70 6f 73 20 20 5c 66 69 | 0a 20 20 20 5c 66 69 0a |pos \fi|. \fi.|
|00004ed0| 20 20 20 5c 67 6c 6f 62 | 61 6c 5c 73 61 76 65 5f | \glob|al\save_|
|00004ee0| 76 73 69 7a 65 3d 5c 76 | 73 69 7a 65 20 20 5c 67 |vsize=\v|size \g|
|00004ef0| 6c 6f 62 61 6c 5c 76 73 | 69 7a 65 3d 5c 6d 61 78 |lobal\vs|ize=\max|
|00004f00| 64 69 6d 65 6e 0a 20 20 | 20 5c 67 6c 6f 62 61 6c |dimen. | \global|
|00004f10| 5c 73 61 76 65 5f 64 69 | 6d 65 6e 5f 74 6f 70 69 |\save_di|men_topi|
|00004f20| 6e 73 3d 5c 64 69 6d 65 | 6e 5c 74 6f 70 69 6e 73 |ns=\dime|n\topins|
|00004f30| 20 20 5c 67 6c 6f 62 61 | 6c 5c 64 69 6d 65 6e 5c | \globa|l\dimen\|
|00004f40| 74 6f 70 69 6e 73 3d 5c | 6d 61 78 64 69 6d 65 6e |topins=\|maxdimen|
|00004f50| 0a 20 20 20 5c 67 6c 6f | 62 61 6c 5c 73 61 76 65 |. \glo|bal\save|
|00004f60| 5f 64 69 6d 65 6e 5f 66 | 6f 6f 74 69 6e 73 3d 5c |_dimen_f|ootins=\|
|00004f70| 64 69 6d 65 6e 5c 66 6f | 6f 74 69 6e 73 0a 09 20 |dimen\fo|otins.. |
|00004f80| 5c 67 6c 6f 62 61 6c 5c | 64 69 6d 65 6e 5c 66 6f |\global\|dimen\fo|
|00004f90| 6f 74 69 6e 73 3d 5c 6d | 61 78 64 69 6d 65 6e 0a |otins=\m|axdimen.|
|00004fa0| 20 20 20 5c 62 61 63 6b | 75 70 5f 70 61 67 65 5f | \back|up_page_|
|00004fb0| 6d 61 72 6b 73 0a 20 20 | 20 7d 0a 0a 5c 63 68 61 |marks. | }..\cha|
|00004fc0| 6e 67 65 5f 70 6f 73 3d | 30 70 74 0a 25 25 25 20 |nge_pos=|0pt.%%% |
|00004fd0| 5c 65 6e 64 70 72 6f 67 | 0a 0a 0a 25 25 25 20 5c |\endprog|...%%% \|
|00004fe0| 73 65 63 74 20 54 6f 20 | 65 6a 65 63 74 20 61 20 |sect To |eject a |
|00004ff0| 70 61 67 65 20 61 73 20 | 66 61 72 20 61 73 20 69 |page as |far as i|
|00005000| 74 20 69 73 20 77 65 20 | 72 65 73 74 6f 72 65 20 |t is we |restore |
|00005010| 69 74 20 66 72 6f 6d 20 | 74 68 65 0a 25 25 25 20 |it from |the.%%% |
|00005020| 7c 5c 73 61 76 65 5f 70 | 61 67 65 7c 20 62 61 63 ||\save_p|age| bac|
|00005030| 6b 20 74 6f 20 62 6f 78 | 7e 32 35 35 2e 20 20 49 |k to box|~255. I|
|00005040| 6e 20 68 6f 72 69 7a 6f | 6e 74 61 6c 20 6d 6f 64 |n horizo|ntal mod|
|00005050| 65 20 61 6e 64 20 61 74 | 20 61 20 62 65 67 69 6e |e and at| a begin|
|00005060| 20 6d 61 72 6b 0a 25 25 | 25 20 74 68 65 20 6c 61 | mark.%%|% the la|
|00005070| 73 74 20 6c 69 6e 65 20 | 63 6f 6e 74 61 69 6e 73 |st line |contains|
|00005080| 20 74 68 65 20 6d 61 72 | 6b 20 61 6e 64 20 6d 75 | the mar|k and mu|
|00005090| 73 74 20 6e 6f 74 20 62 | 65 20 6f 75 74 70 75 74 |st not b|e output|
|000050a0| 2e 20 20 53 6f 20 77 65 | 20 72 65 6d 6f 76 65 20 |. So we| remove |
|000050b0| 69 74 0a 25 25 25 20 61 | 6e 64 20 74 68 65 20 70 |it.%%% a|nd the p|
|000050c0| 72 65 63 65 64 69 6e 67 | 20 67 6c 75 65 20 66 72 |receding| glue fr|
|000050d0| 6f 6d 20 74 68 65 20 73 | 74 6f 72 65 64 20 72 65 |om the s|tored re|
|000050e0| 73 74 2c 20 6a 75 73 74 | 20 6c 65 61 76 69 6e 67 |st, just| leaving|
|000050f0| 20 61 20 73 69 6e 67 6c | 65 20 68 62 6f 78 0a 25 | a singl|e hbox.%|
|00005100| 25 25 20 74 6f 20 62 65 | 20 6f 6e 20 74 6f 70 20 |%% to be| on top |
|00005110| 6f 66 20 74 68 65 20 61 | 63 74 75 61 6c 20 70 61 |of the a|ctual pa|
|00005120| 67 65 20 28 69 6e 20 7c | 5c 73 61 76 65 5f 70 61 |ge (in ||\save_pa|
|00005130| 67 65 7c 29 20 6e 6f 77 | 2e 09 54 68 65 6e 20 6e |ge|) now|..Then n|
|00005140| 6f 72 6d 61 6c 0a 25 25 | 25 20 6f 75 74 70 75 74 |ormal.%%|% output|
|00005150| 20 63 61 6e 20 62 65 20 | 64 6f 6e 65 20 77 69 74 | can be |done wit|
|00005160| 68 20 62 6f 78 7e 32 35 | 35 2e 0a 0a 25 25 25 20 |h box~25|5...%%% |
|00005170| 5c 62 65 67 69 6e 70 72 | 6f 67 0a 5c 64 65 66 5c |\beginpr|og.\def\|
|00005180| 65 6a 65 63 74 5f 70 61 | 67 65 5f 73 6f 5f 66 61 |eject_pa|ge_so_fa|
|00005190| 72 7b 25 0a 20 20 20 5c | 62 65 67 69 6e 67 72 6f |r{%. \|begingro|
|000051a0| 75 70 0a 20 20 20 20 20 | 20 5c 76 62 61 64 6e 65 |up. | \vbadne|
|000051b0| 73 73 3d 32 30 30 30 30 | 20 25 20 64 6f 6e 27 74 |ss=20000| % don't|
|000051c0| 20 63 6f 6d 70 6c 61 69 | 6e 20 61 62 6f 75 74 20 | complai|n about |
|000051d0| 75 6e 64 65 72 66 75 6c | 6c 20 76 62 6f 78 65 73 |underful|l vboxes|
|000051e0| 0a 20 20 20 20 20 20 5c | 67 6c 6f 62 61 6c 5c 73 |. \|global\s|
|000051f0| 65 74 62 6f 78 32 35 35 | 3d 5c 76 62 6f 78 20 74 |etbox255|=\vbox t|
|00005200| 6f 20 5c 70 61 67 65 5f | 67 6f 61 6c 7b 25 0a 09 |o \page_|goal{%..|
|00005210| 20 5c 75 6e 76 62 6f 78 | 5c 73 61 76 65 5f 70 61 | \unvbox|\save_pa|
|00005220| 67 65 0a 09 20 5c 69 66 | 6e 75 6d 20 5c 63 68 61 |ge.. \if|num \cha|
|00005230| 6e 67 65 5f 63 6d 64 3d | 5c 63 68 61 6e 67 65 5f |nge_cmd=|\change_|
|00005240| 70 65 6e 61 6c 74 79 5f | 62 65 67 69 6e 5c 73 70 |penalty_|begin\sp|
|00005250| 61 63 65 0a 09 20 20 20 | 20 5c 69 66 6f 64 64 20 |ace.. | \ifodd |
|00005260| 5c 63 68 61 6e 67 65 5f | 6d 6f 64 65 0a 09 20 20 |\change_|mode.. |
|00005270| 20 20 20 20 20 5c 67 6c | 6f 62 61 6c 5c 73 65 74 | \gl|obal\set|
|00005280| 62 6f 78 5c 73 61 76 65 | 5f 70 61 67 65 3d 5c 6c |box\save|_page=\l|
|00005290| 61 73 74 62 6f 78 0a 09 | 20 20 20 20 20 20 20 5c |astbox..| \|
|000052a0| 75 6e 73 6b 69 70 0a 09 | 20 20 20 20 5c 66 69 0a |unskip..| \fi.|
|000052b0| 09 20 5c 66 69 0a 09 20 | 7d 25 0a 20 20 20 5c 65 |. \fi.. |}%. \e|
|000052c0| 6e 64 67 72 6f 75 70 0a | 20 20 20 5c 70 6c 61 69 |ndgroup.| \plai|
|000052d0| 6e 6f 75 74 70 75 74 0a | 20 20 20 7d 0a 25 25 25 |noutput.| }.%%%|
|000052e0| 20 5c 65 6e 64 70 72 6f | 67 0a 0a 0a 25 25 25 20 | \endpro|g...%%% |
|000052f0| 5c 73 65 63 74 20 0a 25 | 25 25 20 5c 62 65 67 69 |\sect .%|%% \begi|
|00005300| 6e 7b 73 6c 6f 70 70 79 | 70 61 72 7d 0a 25 25 25 |n{sloppy|par}.%%%|
|00005310| 20 49 6e 20 68 6f 72 69 | 7a 6f 6e 74 61 6c 20 6d | In hori|zontal m|
|00005320| 6f 64 65 20 61 6e 64 20 | 61 74 20 61 20 62 65 67 |ode and |at a beg|
|00005330| 69 6e 20 6d 61 72 6b 2c | 20 77 65 20 6e 65 65 64 |in mark,| we need|
|00005340| 20 74 68 65 20 70 6f 73 | 69 74 69 6f 6e 20 6f 66 | the pos|ition of|
|00005350| 0a 25 25 25 20 74 68 65 | 20 6d 61 72 6b 20 28 7c |.%%% the| mark (||
|00005360| 5c 63 68 61 6e 67 65 5f | 70 6f 73 7c 29 20 6f 6e |\change_|pos|) on|
|00005370| 20 74 68 65 20 75 70 70 | 65 72 20 62 6f 75 6e 64 | the upp|er bound|
|00005380| 61 72 79 20 6f 66 20 74 | 68 65 20 6c 61 73 74 20 |ary of t|he last |
|00005390| 6c 69 6e 65 20 69 6e 0a | 25 25 25 20 7c 5c 73 61 |line in.|%%% |\sa|
|000053a0| 76 65 5f 70 61 67 65 7c | 2e 20 20 49 66 20 74 68 |ve_page||. If th|
|000053b0| 65 72 65 20 69 73 20 6a | 75 73 74 20 6f 6e 65 20 |ere is j|ust one |
|000053c0| 6c 69 6e 65 20 6c 65 66 | 74 20 66 72 6f 6d 20 61 |line lef|t from a|
|000053d0| 20 72 65 63 65 6e 74 20 | 65 6a 65 63 74 2c 20 74 | recent |eject, t|
|000053e0| 68 65 0a 25 25 25 20 68 | 65 69 67 68 74 20 69 73 |he.%%% h|eight is|
|000053f0| 20 67 69 76 65 6e 20 62 | 79 20 74 68 65 20 74 6f | given b|y the to|
|00005400| 70 73 6b 69 70 20 64 65 | 63 72 65 61 73 65 64 20 |pskip de|creased |
|00005410| 62 79 20 74 68 65 20 68 | 65 69 67 68 74 20 6f 66 |by the h|eight of|
|00005420| 20 74 68 69 73 20 68 62 | 6f 78 2e 20 20 49 66 0a | this hb|ox. If.|
|00005430| 25 25 25 20 74 68 65 20 | 68 65 69 67 68 74 20 6f |%%% the |height o|
|00005440| 66 20 74 68 65 20 62 6f | 78 20 69 73 20 6c 61 72 |f the bo|x is lar|
|00005450| 67 65 72 20 74 68 61 6e | 20 7c 5c 74 6f 70 73 6b |ger than| |\topsk|
|00005460| 69 70 7c 20 74 68 65 20 | 73 6b 69 70 20 77 69 6c |ip| the |skip wil|
|00005470| 6c 20 6e 6f 74 20 62 65 | 0a 25 25 25 20 69 6e 73 |l not be|.%%% ins|
|00005480| 65 72 74 65 64 20 61 6e | 64 20 74 68 65 20 63 68 |erted an|d the ch|
|00005490| 61 6e 67 65 20 70 6f 73 | 69 74 69 6f 6e 20 72 65 |ange pos|ition re|
|000054a0| 73 75 6c 74 73 20 74 6f | 7e 30 70 74 2e 20 20 4f |sults to|~0pt. O|
|000054b0| 74 68 65 72 77 69 73 65 | 2c 0a 25 25 25 20 7c 5c |therwise|,.%%% |\|
|000054c0| 73 61 76 65 5f 70 61 67 | 65 7c 20 69 73 20 61 20 |save_pag|e| is a |
|000054d0| 76 62 6f 78 20 77 68 6f | 73 65 20 6c 61 73 74 20 |vbox who|se last |
|000054e0| 68 62 6f 78 20 77 65 20 | 64 65 6c 65 74 65 20 74 |hbox we |delete t|
|000054f0| 65 6d 70 6f 72 61 72 69 | 6c 79 20 75 73 69 6e 67 |emporari|ly using|
|00005500| 0a 25 25 25 20 62 6f 78 | 7e 30 2e 09 48 65 69 67 |.%%% box|~0..Heig|
|00005510| 68 74 20 61 6e 64 20 64 | 65 70 74 68 20 6f 66 20 |ht and d|epth of |
|00005520| 74 68 65 20 72 65 73 74 | 20 61 72 65 20 74 68 65 |the rest| are the|
|00005530| 20 61 63 74 75 61 6c 20 | 70 6f 73 69 74 69 6f 6e | actual |position|
|00005540| 20 6f 6e 20 74 68 65 20 | 70 61 67 65 2e 0a 25 25 | on the |page..%%|
|00005550| 25 20 5c 65 6e 64 7b 73 | 6c 6f 70 70 79 70 61 72 |% \end{s|loppypar|
|00005560| 7d 0a 0a 25 25 25 20 54 | 68 65 20 64 6f 75 62 6c |}..%%% T|he doubl|
|00005570| 65 20 6f 66 20 74 68 65 | 20 70 61 67 65 20 77 65 |e of the| page we|
|00005580| 20 68 61 76 65 20 63 6f | 6e 73 74 72 75 63 74 65 | have co|nstructe|
|00005590| 64 20 74 68 69 73 20 77 | 61 79 20 77 69 6c 6c 20 |d this w|ay will |
|000055a0| 69 6d 6d 65 64 69 61 74 | 65 6c 79 20 62 65 0a 25 |immediat|ely be.%|
|000055b0| 25 25 20 66 65 64 20 62 | 61 63 6b 20 74 6f 20 74 |%% fed b|ack to t|
|000055c0| 68 65 20 67 61 72 62 61 | 67 65 20 63 6f 6c 6c 65 |he garba|ge colle|
|000055d0| 63 74 6f 72 20 62 65 63 | 61 75 73 65 20 69 74 20 |ctor bec|ause it |
|000055e0| 63 6f 75 6c 64 20 68 61 | 76 65 20 62 65 63 6f 6d |could ha|ve becom|
|000055f0| 65 0a 25 25 25 20 72 65 | 61 73 6f 6e 61 62 6c 79 |e.%%% re|asonably|
|00005600| 20 6c 61 72 67 65 2e 0a | 0a 25 25 25 20 5c 62 65 | large..|.%%% \be|
|00005610| 67 69 6e 70 72 6f 67 0a | 5c 64 65 66 5c 68 69 67 |ginprog.|\def\hig|
|00005620| 68 65 72 5f 63 68 61 6e | 67 65 5f 70 6f 73 7b 25 |her_chan|ge_pos{%|
|00005630| 0a 20 20 20 5c 69 66 68 | 62 6f 78 20 5c 73 61 76 |. \ifh|box \sav|
|00005640| 65 5f 70 61 67 65 20 25 | 20 72 65 73 74 20 6f 66 |e_page %| rest of|
|00005650| 20 70 61 67 65 20 66 72 | 6f 6d 20 5c 65 6a 65 63 | page fr|om \ejec|
|00005660| 74 5f 70 61 67 65 5f 73 | 6f 5f 66 61 72 0a 20 20 |t_page_s|o_far. |
|00005670| 20 20 20 20 5c 63 68 61 | 6e 67 65 5f 70 6f 73 3d | \cha|nge_pos=|
|00005680| 5c 74 6f 70 73 6b 69 70 | 20 20 5c 67 6c 6f 62 61 |\topskip| \globa|
|00005690| 6c 5c 61 64 76 61 6e 63 | 65 20 5c 63 68 61 6e 67 |l\advanc|e \chang|
|000056a0| 65 5f 70 6f 73 20 62 79 | 20 2d 5c 68 74 5c 73 61 |e_pos by| -\ht\sa|
|000056b0| 76 65 5f 70 61 67 65 0a | 20 20 20 20 20 20 5c 69 |ve_page.| \i|
|000056c0| 66 64 69 6d 20 5c 63 68 | 61 6e 67 65 5f 70 6f 73 |fdim \ch|ange_pos|
|000056d0| 3c 30 70 74 20 20 5c 67 | 6c 6f 62 61 6c 5c 63 68 |<0pt \g|lobal\ch|
|000056e0| 61 6e 67 65 5f 70 6f 73 | 3d 30 70 74 20 20 5c 66 |ange_pos|=0pt \f|
|000056f0| 69 0a 20 20 20 5c 65 6c | 73 65 0a 20 20 20 20 20 |i. \el|se. |
|00005700| 20 5c 73 65 74 62 6f 78 | 30 3d 5c 76 62 6f 78 7b | \setbox|0=\vbox{|
|00005710| 25 0a 09 20 5c 75 6e 76 | 63 6f 70 79 5c 73 61 76 |%.. \unv|copy\sav|
|00005720| 65 5f 70 61 67 65 0a 09 | 20 5c 73 65 74 62 6f 78 |e_page..| \setbox|
|00005730| 30 3d 5c 6c 61 73 74 62 | 6f 78 20 25 20 64 65 6c |0=\lastb|ox % del|
|00005740| 65 74 65 20 6c 61 73 74 | 20 6c 69 6e 65 0a 09 20 |ete last| line.. |
|00005750| 7d 25 0a 20 20 20 20 20 | 20 5c 63 68 61 6e 67 65 |}%. | \change|
|00005760| 5f 70 6f 73 3d 5c 68 74 | 30 09 5c 67 6c 6f 62 61 |_pos=\ht|0.\globa|
|00005770| 6c 5c 61 64 76 61 6e 63 | 65 20 5c 63 68 61 6e 67 |l\advanc|e \chang|
|00005780| 65 5f 70 6f 73 20 62 79 | 20 5c 64 70 30 0a 20 20 |e_pos by| \dp0. |
|00005790| 20 20 20 20 5c 73 65 74 | 62 6f 78 30 3d 5c 62 6f | \set|box0=\bo|
|000057a0| 78 5c 76 6f 69 64 62 40 | 78 0a 20 20 20 5c 66 69 |x\voidb@|x. \fi|
|000057b0| 0a 20 20 20 7d 0a 25 25 | 25 20 5c 65 6e 64 70 72 |. }.%%|% \endpr|
|000057c0| 6f 67 0a 0a 0a 25 25 25 | 20 5c 73 65 63 74 20 54 |og...%%%| \sect T|
|000057d0| 6f 20 72 65 73 74 6f 72 | 65 20 61 20 70 61 67 65 |o restor|e a page|
|000057e0| 20 64 75 72 69 6e 67 20 | 74 68 65 20 73 65 63 6f | during |the seco|
|000057f0| 6e 64 20 6f 75 74 70 75 | 74 20 69 6e 76 6f 63 61 |nd outpu|t invoca|
|00005800| 74 69 6f 6e 2c 20 77 65 | 20 66 69 72 73 74 0a 25 |tion, we| first.%|
|00005810| 25 25 20 72 65 73 74 6f | 72 65 20 74 68 65 20 73 |%% resto|re the s|
|00005820| 61 76 65 64 20 76 61 6c | 75 65 73 2c 20 62 75 74 |aved val|ues, but|
|00005830| 20 6f 6e 6c 79 20 69 66 | 20 74 68 65 79 20 77 65 | only if| they we|
|00005840| 72 65 20 72 65 61 6c 6c | 79 20 63 68 61 6e 67 65 |re reall|y change|
|00005850| 64 20 28 74 68 69 73 20 | 63 61 6e 0a 25 25 25 20 |d (this |can.%%% |
|00005860| 62 65 20 64 69 73 63 6f | 76 65 72 65 64 20 62 79 |be disco|vered by|
|00005870| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 7c 5c | the val|ue of |\|
|00005880| 73 61 76 65 5f 76 73 69 | 7a 65 7c 29 2e 20 20 4e |save_vsi|ze|). N|
|00005890| 6f 77 20 74 68 65 20 7c | 5c 73 61 76 65 5f 70 61 |ow the ||\save_pa|
|000058a0| 67 65 7c 20 69 73 0a 25 | 25 25 20 61 70 70 65 6e |ge| is.%|%% appen|
|000058b0| 64 65 64 20 74 6f 20 74 | 68 65 20 63 75 72 72 65 |ded to t|he curre|
|000058c0| 6e 74 20 6c 69 73 74 20 | 61 73 20 61 20 62 6f 78 |nt list |as a box|
|000058d0| 2c 20 77 68 69 63 68 20 | 73 74 6f 70 73 20 6c 61 |, which |stops la|
|000058e0| 74 65 72 20 75 73 61 67 | 65 20 6f 66 20 69 74 73 |ter usag|e of its|
|000058f0| 0a 25 25 25 20 73 74 72 | 65 74 63 68 2d 20 61 6e |.%%% str|etch- an|
|00005900| 64 20 73 68 72 69 6e 6b | 61 62 69 6c 69 74 79 21 |d shrink|ability!|
|00005910| 20 20 54 68 65 6e 20 74 | 68 65 20 63 6f 6c 6c 65 | Then t|he colle|
|00005920| 63 74 65 64 20 69 6e 73 | 65 72 74 69 6f 6e 73 20 |cted ins|ertions |
|00005930| 63 61 6e 20 62 65 0a 25 | 25 25 20 69 6e 73 65 72 |can be.%|%% inser|
|00005940| 74 65 64 20 61 67 61 69 | 6e 2e 20 54 68 65 20 70 |ted agai|n. The p|
|00005950| 61 67 65 20 6d 61 72 6b | 73 20 68 61 76 65 20 74 |age mark|s have t|
|00005960| 6f 20 62 65 20 69 6e 73 | 65 72 74 65 64 2c 20 74 |o be ins|erted, t|
|00005970| 6f 6f 2e 0a 0a 25 25 25 | 20 5c 62 65 67 69 6e 70 |oo...%%%| \beginp|
|00005980| 72 6f 67 0a 5c 64 65 66 | 5c 72 65 73 74 6f 72 65 |rog.\def|\restore|
|00005990| 5f 70 61 67 65 7b 25 0a | 20 20 20 5c 69 66 64 69 |_page{%.| \ifdi|
|000059a0| 6d 20 5c 73 61 76 65 5f | 76 73 69 7a 65 3d 5c 6d |m \save_|vsize=\m|
|000059b0| 61 78 64 69 6d 65 6e 0a | 20 20 20 5c 65 6c 73 65 |axdimen.| \else|
|000059c0| 20 20 5c 67 6c 6f 62 61 | 6c 5c 76 73 69 7a 65 3d | \globa|l\vsize=|
|000059d0| 5c 73 61 76 65 5f 76 73 | 69 7a 65 0a 20 20 20 20 |\save_vs|ize. |
|000059e0| 20 20 5c 67 6c 6f 62 61 | 6c 5c 64 69 6d 65 6e 5c | \globa|l\dimen\|
|000059f0| 74 6f 70 69 6e 73 3d 5c | 73 61 76 65 5f 64 69 6d |topins=\|save_dim|
|00005a00| 65 6e 5f 74 6f 70 69 6e | 73 0a 20 20 20 20 20 20 |en_topin|s. |
|00005a10| 5c 67 6c 6f 62 61 6c 5c | 64 69 6d 65 6e 5c 66 6f |\global\|dimen\fo|
|00005a20| 6f 74 69 6e 73 3d 5c 73 | 61 76 65 5f 64 69 6d 65 |otins=\s|ave_dime|
|00005a30| 6e 5f 66 6f 6f 74 69 6e | 73 0a 20 20 20 20 20 20 |n_footin|s. |
|00005a40| 5c 67 6c 6f 62 61 6c 5c | 73 61 76 65 5f 76 73 69 |\global\|save_vsi|
|00005a50| 7a 65 3d 5c 6d 61 78 64 | 69 6d 65 6e 0a 20 20 20 |ze=\maxd|imen. |
|00005a60| 20 20 20 5c 72 65 73 74 | 6f 72 65 5f 70 61 67 65 | \rest|ore_page|
|00005a70| 5f 6d 61 72 6b 73 0a 20 | 20 20 5c 66 69 0a 20 20 |_marks. | \fi. |
|00005a80| 20 5c 62 6f 78 5c 73 61 | 76 65 5f 70 61 67 65 20 | \box\sa|ve_page |
|00005a90| 25 20 64 69 73 63 61 72 | 64 73 20 73 74 72 65 74 |% discar|ds stret|
|00005aa0| 63 68 2d 20 61 6e 64 20 | 73 68 72 69 6e 6b 61 62 |ch- and |shrinkab|
|00005ab0| 69 6c 69 74 79 21 0a 20 | 20 20 5c 69 66 76 6f 69 |ility!. | \ifvoi|
|00005ac0| 64 20 5c 74 6f 70 69 6e | 73 0a 20 20 20 5c 65 6c |d \topin|s. \el|
|00005ad0| 73 65 20 20 5c 69 6e 73 | 65 72 74 5c 74 6f 70 69 |se \ins|ert\topi|
|00005ae0| 6e 73 7b 5c 66 6c 6f 61 | 74 69 6e 67 70 65 6e 61 |ns{\floa|tingpena|
|00005af0| 6c 74 79 3d 30 20 5c 75 | 6e 76 62 6f 78 5c 74 6f |lty=0 \u|nvbox\to|
|00005b00| 70 69 6e 73 7d 25 0a 20 | 20 20 5c 66 69 0a 20 20 |pins}%. | \fi. |
|00005b10| 20 5c 69 66 76 6f 69 64 | 20 5c 66 6f 6f 74 69 6e | \ifvoid| \footin|
|00005b20| 73 0a 20 20 20 5c 65 6c | 73 65 20 20 5c 69 6e 73 |s. \el|se \ins|
|00005b30| 65 72 74 5c 66 6f 6f 74 | 69 6e 73 7b 5c 66 6c 6f |ert\foot|ins{\flo|
|00005b40| 61 74 69 6e 67 70 65 6e | 61 6c 74 79 3d 32 30 30 |atingpen|alty=200|
|00005b50| 30 30 20 5c 75 6e 76 62 | 6f 78 5c 66 6f 6f 74 69 |00 \unvb|ox\footi|
|00005b60| 6e 73 7d 25 0a 20 20 20 | 5c 66 69 0a 20 20 20 7d |ns}%. |\fi. }|
|00005b70| 0a 25 25 25 20 5c 65 6e | 64 70 72 6f 67 0a 0a 0a |.%%% \en|dprog...|
|00005b80| 25 25 25 20 5c 73 65 63 | 74 20 7b 5c 65 6d 20 50 |%%% \sec|t {\em P|
|00005b90| 6c 65 61 73 65 20 6e 6f | 74 65 2c 20 74 68 61 74 |lease no|te, that|
|00005ba0| 20 74 68 65 72 65 20 69 | 73 20 73 74 69 6c 6c 20 | there i|s still |
|00005bb0| 61 20 70 72 6f 62 6c 65 | 6d 20 77 69 74 68 20 74 |a proble|m with t|
|00005bc0| 68 69 73 20 63 6f 6e 63 | 65 70 74 20 0a 25 25 25 |his conc|ept .%%%|
|00005bd0| 20 6f 66 20 68 61 6e 64 | 6c 69 6e 67 20 74 68 65 | of hand|ling the|
|00005be0| 20 6f 75 74 70 75 74 20 | 74 72 69 67 67 65 72 3a | output |trigger:|
|00005bf0| 7d 0a 0a 25 25 25 20 5c | 62 69 67 73 6b 69 70 0a |}..%%% \|bigskip.|
|00005c00| 0a 25 25 25 20 49 66 20 | 74 68 65 20 66 69 72 73 |.%%% If |the firs|
|00005c10| 74 20 6f 75 74 70 75 74 | 20 74 72 69 67 67 65 72 |t output| trigger|
|00005c20| 20 69 73 20 64 69 73 63 | 61 72 64 65 64 20 62 65 | is disc|arded be|
|00005c30| 63 61 75 73 65 20 61 20 | 70 61 67 65 20 62 72 65 |cause a |page bre|
|00005c40| 61 6b 20 68 61 73 20 6f | 63 63 75 72 65 64 20 0a |ak has o|ccured .|
|00005c50| 25 25 25 20 6a 75 73 74 | 20 69 6e 20 66 72 6f 6e |%%% just| in fron|
|00005c60| 74 2c 20 66 6f 6f 74 6e | 6f 74 65 20 70 61 72 74 |t, footn|ote part|
|00005c70| 73 20 6d 61 79 20 62 65 | 20 6a 75 67 67 6c 65 64 |s may be| juggled|
|00005c80| 20 61 72 6f 75 6e 64 2e | 20 49 2e 65 2e 2c 20 69 | around.| I.e., i|
|00005c90| 66 20 61 20 0a 25 25 25 | 20 66 6f 6f 74 6e 6f 74 |f a .%%%| footnot|
|00005ca0| 65 20 69 73 20 73 70 6c | 69 74 20 69 6e 20 74 68 |e is spl|it in th|
|00005cb0| 72 65 65 20 70 61 72 74 | 73 2c 20 74 68 65 20 66 |ree part|s, the f|
|00005cc0| 69 72 73 74 20 70 61 72 | 74 20 77 61 73 20 6a 75 |irst par|t was ju|
|00005cd0| 73 74 20 62 65 65 6e 20 | 73 68 69 70 70 65 64 20 |st been |shipped |
|00005ce0| 0a 25 25 25 20 6f 75 74 | 2c 20 74 68 65 20 73 65 |.%%% out|, the se|
|00005cf0| 63 6f 6e 64 20 70 61 72 | 74 20 69 73 20 69 6e 73 |cond par|t is ins|
|00005d00| 65 72 74 65 64 20 62 61 | 63 6b 20 69 6e 74 6f 20 |erted ba|ck into |
|00005d10| 74 68 65 20 72 65 63 65 | 6e 74 20 63 6f 6e 74 72 |the rece|nt contr|
|00005d20| 69 62 75 74 69 6f 6e 73 | 20 62 79 20 0a 25 25 25 |ibutions| by .%%%|
|00005d30| 20 74 68 65 20 6f 75 74 | 70 75 74 20 72 6f 75 74 | the out|put rout|
|00005d40| 69 6e 65 20 62 75 74 20 | 7b 5c 65 6d 20 62 65 68 |ine but |{\em beh|
|00005d50| 69 6e 64 5c 2f 7d 20 74 | 68 65 20 74 68 69 72 64 |ind\/} t|he third|
|00005d60| 20 70 61 72 74 20 77 68 | 69 63 68 20 69 73 20 73 | part wh|ich is s|
|00005d70| 61 76 65 64 20 69 6e 20 | 0a 25 25 25 20 74 68 65 |aved in |.%%% the|
|00005d80| 20 60 60 73 70 65 63 69 | 61 6c 20 70 6c 61 63 65 | ``speci|al place|
|00005d90| 27 27 20 28 61 63 63 6f | 72 64 69 6e 67 20 74 6f |'' (acco|rding to|
|00005da0| 20 74 68 65 20 5c 54 65 | 58 7b 7d 62 6f 6f 6b 2c | the \Te|X{}book,|
|00005db0| 20 70 2e 7e 31 32 35 29 | 2e 20 41 20 73 6f 6c 75 | p.~125)|. A solu|
|00005dc0| 74 69 6f 6e 20 74 6f 0a | 25 25 25 20 74 68 69 73 |tion to.|%%% this|
|00005dd0| 20 70 72 6f 62 6c 65 6d | 20 6d 69 67 68 74 20 62 | problem| might b|
|00005de0| 65 20 74 6f 20 69 6e 73 | 65 72 74 20 61 20 7c 5c |e to ins|ert a |\|
|00005df0| 64 6f 5f 63 68 61 6e 67 | 65 7c 20 61 67 61 69 6e |do_chang|e| again|
|00005e00| 20 77 69 74 68 69 6e 20 | 74 68 65 20 73 65 63 6f | within |the seco|
|00005e10| 6e 64 0a 25 25 25 20 6f | 75 74 70 75 74 20 74 72 |nd.%%% o|utput tr|
|00005e20| 69 67 67 65 72 20 61 6e | 64 20 66 69 6e 69 73 68 |igger an|d finish|
|00005e30| 69 6e 67 20 74 68 65 20 | 74 72 65 61 74 6d 65 6e |ing the |treatmen|
|00005e40| 64 20 61 66 74 65 72 77 | 61 72 64 73 2e 20 41 66 |d afterw|ards. Af|
|00005e50| 74 65 72 77 61 72 64 73 | 20 61 20 0a 25 25 25 20 |terwards| a .%%% |
|00005e60| 66 75 6c 6c 20 74 72 69 | 67 67 65 72 69 6e 67 20 |full tri|ggering |
|00005e70| 70 72 6f 63 65 73 73 20 | 28 74 77 6f 20 6f 75 74 |process |(two out|
|00005e80| 70 75 74 20 69 6e 76 6f | 63 61 74 69 6f 6e 73 29 |put invo|cations)|
|00005e90| 20 69 73 20 65 78 65 63 | 75 74 65 64 20 61 67 61 | is exec|uted aga|
|00005ea0| 69 6e 20 61 6e 64 20 0a | 25 25 25 20 61 6c 6c 65 |in and .|%%% alle|
|00005eb0| 20 69 6e 73 65 72 74 69 | 6f 6e 20 70 61 72 74 73 | inserti|on parts|
|00005ec0| 20 77 69 6c 6c 20 62 65 | 20 61 63 63 65 73 73 69 | will be| accessi|
|00005ed0| 62 6c 65 20 69 6e 20 74 | 68 65 20 69 6e 73 65 72 |ble in t|he inser|
|00005ee0| 74 69 6f 6e 20 62 6f 78 | 2e 0a 0a 25 25 25 20 42 |tion box|...%%% B|
|00005ef0| 79 20 74 68 65 20 77 61 | 79 2c 20 74 68 65 20 61 |y the wa|y, the a|
|00005f00| 6c 6d 6f 73 74 20 73 61 | 6d 65 20 70 72 6f 62 6c |lmost sa|me probl|
|00005f10| 65 6d 20 61 70 70 65 61 | 72 73 20 69 6e 20 5c 4c |em appea|rs in \L|
|00005f20| 61 54 65 58 7b 7d 2c 20 | 74 6f 6f 2e 20 41 6c 6d |aTeX{}, |too. Alm|
|00005f30| 6f 73 74 3a 20 69 6e 0a | 25 25 25 20 5c 4c 61 54 |ost: in.|%%% \LaT|
|00005f40| 65 58 7b 7d 20 74 68 69 | 73 20 63 61 6e 20 68 61 |eX{} thi|s can ha|
|00005f50| 70 70 65 6e 20 65 76 65 | 72 79 20 74 69 6d 65 20 |ppen eve|ry time |
|00005f60| 62 65 63 61 75 73 65 20 | 61 74 20 74 68 65 20 66 |because |at the f|
|00005f70| 69 72 73 74 20 6f 75 74 | 70 75 74 20 69 6e 76 6f |irst out|put invo|
|00005f80| 63 61 74 69 6f 6e 0a 25 | 25 25 20 74 68 65 20 7c |cation.%|%% the ||
|00005f90| 5c 64 69 6d 65 6e 7c 2d | 76 61 6c 75 65 73 20 6f |\dimen|-|values o|
|00005fa0| 66 20 74 68 65 20 66 6f | 6f 74 6e 6f 74 65 20 69 |f the fo|otnote i|
|00005fb0| 6e 73 65 72 74 69 6f 6e | 20 69 73 20 6e 6f 74 20 |nsertion| is not |
|00005fc0| 69 6e 63 72 65 61 73 65 | 64 2e 20 49 20 6c 65 61 |increase|d. I lea|
|00005fd0| 76 65 20 0a 25 25 25 20 | 74 68 65 20 70 72 6f 62 |ve .%%% |the prob|
|00005fe0| 6c 65 6d 20 6f 70 65 6e | 20 74 6f 20 74 68 65 20 |lem open| to the |
|00005ff0| 72 65 61 64 65 72 5c 2c | 5c 64 6f 74 73 0a 0a 0a |reader\,|\dots...|
|00006000| 0a 0a 0a 25 25 25 20 5c | 63 68 61 70 20 57 72 69 |...%%% \|chap Wri|
|00006010| 74 69 6e 67 20 74 68 65 | 20 53 74 75 66 66 2e 0a |ting the| Stuff..|
|00006020| 0a 25 25 25 20 54 68 65 | 20 70 6f 73 69 74 69 6f |.%%% The| positio|
|00006030| 6e 73 20 6f 66 20 74 68 | 65 20 62 61 72 73 20 77 |ns of th|e bars w|
|00006040| 68 69 63 68 20 6d 61 72 | 6b 20 74 68 65 20 63 68 |hich mar|k the ch|
|00006050| 61 6e 67 65 64 20 61 72 | 65 61 73 20 61 72 65 20 |anged ar|eas are |
|00006060| 72 65 6c 61 74 69 76 65 | 20 74 6f 0a 25 25 25 20 |relative| to.%%% |
|00006070| 74 68 65 20 74 6f 70 20 | 6f 66 20 74 68 65 20 74 |the top |of the t|
|00006080| 65 78 74 2c 20 69 2e 65 | 2e 5c 20 74 68 65 20 68 |ext, i.e|.\ the h|
|00006090| 65 69 67 68 74 20 6f 66 | 20 74 68 65 20 74 6f 70 |eight of| the top|
|000060a0| 20 69 6e 73 65 72 74 69 | 6f 6e 20 69 73 20 6e 6f | inserti|on is no|
|000060b0| 74 0a 25 25 25 20 69 6e | 63 6c 75 64 65 64 2e 20 |t.%%% in|cluded. |
|000060c0| 20 54 68 65 72 65 66 6f | 72 65 20 69 74 20 69 73 | Therefo|re it is|
|000060d0| 20 62 65 73 74 20 74 6f | 20 77 72 69 74 65 20 74 | best to| write t|
|000060e0| 68 65 6d 20 6a 75 73 74 | 20 61 66 74 65 72 20 74 |hem just| after t|
|000060f0| 68 65 20 74 6f 70 0a 25 | 25 25 20 69 6e 73 65 72 |he top.%|%% inser|
|00006100| 74 69 6f 6e 73 20 62 65 | 66 6f 72 65 20 74 68 65 |tions be|fore the|
|00006110| 20 70 61 67 65 20 74 65 | 78 74 2d 2d 2d 62 75 74 | page te|xt---but|
|00006120| 20 74 6f 20 64 6f 20 74 | 68 69 73 20 77 65 20 68 | to do t|his we h|
|00006130| 61 76 65 20 74 6f 20 63 | 68 61 6e 67 65 20 74 68 |ave to c|hange th|
|00006140| 65 0a 25 25 25 20 50 6c | 61 69 6e 20 6d 61 63 72 |e.%%% Pl|ain macr|
|00006150| 6f 20 7c 5c 70 61 67 65 | 63 6f 6e 74 65 6e 74 73 |o |\page|contents|
|00006160| 7c 2e 0a 0a 25 25 25 20 | 42 65 6c 6f 77 20 69 73 ||...%%% |Below is|
|00006170| 20 74 68 65 20 6e 65 77 | 20 64 65 66 69 6e 69 74 | the new| definit|
|00006180| 69 6f 6e 2c 20 49 20 68 | 61 76 65 20 6a 75 73 74 |ion, I h|ave just|
|00006190| 20 72 65 61 72 72 61 6e | 67 65 64 20 69 74 20 61 | rearran|ged it a|
|000061a0| 20 6c 69 74 74 6c 65 20 | 62 69 74 20 73 6f 0a 25 | little |bit so.%|
|000061b0| 25 25 20 74 68 61 74 20 | 69 74 20 69 73 20 6d 6f |%% that |it is mo|
|000061c0| 72 65 20 6c 65 67 69 62 | 6c 65 2e 20 20 54 68 65 |re legib|le. The|
|000061d0| 20 6c 69 6e 65 20 49 20 | 68 61 76 65 20 69 6e 73 | line I |have ins|
|000061e0| 65 72 74 65 64 20 69 73 | 20 6d 61 72 6b 65 64 20 |erted is| marked |
|000061f0| 77 69 74 68 0a 25 25 25 | 20 60 7c 25 25 25 25 7c |with.%%%| `|%%%%||
|00006200| 27 2e 20 20 7c 5c 69 6e | 73 65 72 74 5f 63 75 72 |'. |\in|sert_cur|
|00006210| 72 65 6e 74 5f 62 61 72 | 7c 20 69 6e 73 65 72 74 |rent_bar|| insert|
|00006220| 73 20 61 20 6c 61 73 74 | 20 65 6c 65 6d 65 6e 74 |s a last| element|
|00006230| 20 69 6e 20 7c 5c 62 61 | 72 5f 6c 69 73 74 7c 0a | in |\ba|r_list|.|
|00006240| 25 25 25 20 69 66 20 61 | 20 63 68 61 6e 67 65 64 |%%% if a| changed|
|00006250| 20 61 72 65 61 20 69 73 | 20 6e 6f 74 20 79 65 74 | area is| not yet|
|00006260| 20 66 69 6e 69 73 68 65 | 64 2c 20 61 66 74 65 72 | finishe|d, after|
|00006270| 77 61 72 64 73 20 61 6c | 6c 20 62 61 72 73 20 63 |wards al|l bars c|
|00006280| 61 6e 20 62 65 0a 25 25 | 25 20 77 72 69 74 74 65 |an be.%%|% writte|
|00006290| 6e 2e 0a 0a 25 25 25 20 | 5c 62 65 67 69 6e 70 72 |n...%%% |\beginpr|
|000062a0| 6f 67 0a 5c 64 65 66 5c | 70 61 67 65 63 6f 6e 74 |og.\def\|pagecont|
|000062b0| 65 6e 74 73 7b 25 0a 20 | 20 20 5c 69 66 76 6f 69 |ents{%. | \ifvoi|
|000062c0| 64 20 5c 74 6f 70 69 6e | 73 20 20 5c 65 6c 73 65 |d \topin|s \else|
|000062d0| 20 5c 75 6e 76 62 6f 78 | 5c 74 6f 70 69 6e 73 20 | \unvbox|\topins |
|000062e0| 5c 66 69 0a 20 20 20 5c | 69 6e 73 65 72 74 5f 63 |\fi. \|insert_c|
|000062f0| 75 72 72 65 6e 74 5f 62 | 61 72 09 5c 77 72 69 74 |urrent_b|ar.\writ|
|00006300| 65 5f 61 6c 6c 5f 62 61 | 72 73 20 09 09 20 25 25 |e_all_ba|rs .. %%|
|00006310| 25 25 0a 20 20 20 5c 64 | 69 6d 65 6e 40 3d 5c 64 |%%. \d|imen@=\d|
|00006320| 70 5c 40 63 63 6c 76 20 | 5c 75 6e 76 62 6f 78 5c |p\@cclv |\unvbox\|
|00006330| 40 63 63 6c 76 20 25 20 | 6f 70 65 6e 20 75 70 20 |@cclv % |open up |
|00006340| 5c 62 6f 78 32 35 35 0a | 20 20 20 5c 69 66 76 6f |\box255.| \ifvo|
|00006350| 69 64 20 5c 66 6f 6f 74 | 69 6e 73 0a 20 20 20 5c |id \foot|ins. \|
|00006360| 65 6c 73 65 20 25 20 66 | 6f 6f 74 6e 6f 74 65 20 |else % f|ootnote |
|00006370| 69 6e 66 6f 20 69 73 20 | 70 72 65 73 65 6e 74 0a |info is |present.|
|00006380| 20 20 20 20 20 20 5c 76 | 73 6b 69 70 5c 73 6b 69 | \v|skip\ski|
|00006390| 70 5c 66 6f 6f 74 69 6e | 73 0a 20 20 20 20 20 20 |p\footin|s. |
|000063a0| 5c 66 6f 6f 74 6e 6f 74 | 65 72 75 6c 65 0a 20 20 |\footnot|erule. |
|000063b0| 20 20 20 20 5c 75 6e 76 | 62 6f 78 5c 66 6f 6f 74 | \unv|box\foot|
|000063c0| 69 6e 73 0a 20 20 20 5c | 66 69 0a 20 20 20 5c 69 |ins. \|fi. \i|
|000063d0| 66 72 40 67 67 65 64 62 | 6f 74 74 6f 6d 20 5c 6b |fr@ggedb|ottom \k|
|000063e0| 65 72 6e 2d 5c 64 69 6d | 65 6e 40 20 5c 76 66 69 |ern-\dim|en@ \vfi|
|000063f0| 6c 20 5c 66 69 0a 20 20 | 20 7d 0a 25 25 25 20 5c |l \fi. | }.%%% \|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.